Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 112.5 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.392/1.392, allocations: 230.6 MB / 258.3 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 43.92 kB / 378.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2361, allocations: 53.36 MB / 431.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003565/0.2397, allocations: 2.386 MB / 434.3 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.2408, allocations: 0.6583 MB / 435 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.2409, allocations: 11.88 kB / 435 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.241, allocations: 35.59 kB / 435 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001557/0.2412, allocations: 75.33 kB / 435.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002262/0.2414, allocations: 71.84 kB / 435.2 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000304/0.2417, allocations: 278.6 kB / 435.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.2419, allocations: 75.23 kB / 435.5 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.2421, allocations: 115.6 kB / 435.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000168/0.2423, allocations: 115.4 kB / 435.7 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.027e-05/0.2423, allocations: 20 kB / 435.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.773e-05/0.2424, allocations: 28 kB / 435.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.28e-05/0.2424, allocations: 47.83 kB / 435.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.2425, allocations: 123.4 kB / 435.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000325/0.2429, allocations: 275.6 kB / 436.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2429, allocations: 4 kB / 436.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2429, allocations: 0 / 436.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.2429, allocations: 0 / 436.2 MB, free: 2.543 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007222/0.2436, allocations: 465.5 kB / 436.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2436, allocations: 8.031 kB / 436.7 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.587e-05/0.2436, allocations: 8.625 kB / 436.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.464e-05/0.2437, allocations: 58.73 kB / 436.7 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001518/0.2439, allocations: 40.73 kB / 436.8 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.2442, allocations: 178.9 kB / 437 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.2442, allocations: 12.81 kB / 437 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.694e-05/0.2442, allocations: 36.25 kB / 437 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003495/0.2446, allocations: 199.2 kB / 437.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.2446, allocations: 0 / 437.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/0.2446, allocations: 16 kB / 437.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.2446, allocations: 4 kB / 437.2 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000276/0.2449, allocations: 137.7 kB / 437.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00092/0.2458, allocations: 0.5987 MB / 437.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002946/0.2461, allocations: 166.5 kB / 438.1 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.2463, allocations: 88.83 kB / 438.2 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.2463, allocations: 4 kB / 438.2 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.2463, allocations: 34.56 kB / 438.2 MB, free: 392 kB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.282e-06/0.2463, allocations: 0 / 438.2 MB, free: 392 kB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001819/0.2481, allocations: 0.9297 MB / 439.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.45e-05/0.2482, allocations: 55.41 kB / 439.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001726/0.2484, allocations: 183.1 kB / 439.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.2484, allocations: 33.7 kB / 439.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.529e-05/0.2485, allocations: 148.8 kB / 439.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.785e-05/0.2486, allocations: 111 kB / 439.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.922e-05/0.2486, allocations: 53.7 kB / 439.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.2488, allocations: 334.8 kB / 440.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/0.2489, allocations: 71.97 kB / 440.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.2491, allocations: 107.8 kB / 440.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003228/0.2494, allocations: 201 kB / 440.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.2494, allocations: 0 / 440.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004994/0.2499, allocations: 291.2 kB / 440.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.2499, allocations: 8 kB / 440.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.2499, allocations: 0 / 440.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001623/0.2501, allocations: 40.91 kB / 440.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000241/0.2503, allocations: 67.89 kB / 440.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001528/0.2519, allocations: 1.625 MB / 442.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.252, allocations: 8.031 kB / 442.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/0.252, allocations: 12.19 kB / 442.5 MB, free: 11.9 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00014/0.2521, allocations: 141.8 kB / 442.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.502e-05/0.2522, allocations: 23.86 kB / 442.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.403e-05/0.2523, allocations: 46.56 kB / 442.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.2523, allocations: 4 kB / 442.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.2523, allocations: 0 / 442.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2523, allocations: 0 / 442.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.2534, allocations: 0.7578 MB / 443.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.2534, allocations: 0 / 443.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/0.2536, allocations: 59.91 kB / 443.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001133/0.2537, allocations: 32.84 kB / 443.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.2538, allocations: 7.984 kB / 443.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001168/0.2549, allocations: 1.393 MB / 444.9 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2549, allocations: 64 / 444.9 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006742/0.2556, allocations: 486.8 kB / 445.4 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-05/0.2556, allocations: 19.86 kB / 445.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.848e-05/0.2557, allocations: 12 kB / 445.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.2558, allocations: 12.27 kB / 445.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.721e-05/0.2559, allocations: 23.95 kB / 445.5 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.2559, allocations: 4 kB / 445.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001098/0.256, allocations: 132.4 kB / 445.6 MB, free: 8.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.256, allocations: 0 / 445.6 MB, free: 8.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003592/0.2563, allocations: 71.94 kB / 445.7 MB, free: 8.465 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009832/0.2573, allocations: 1.028 MB / 446.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005864/0.2579, allocations: 330.6 kB / 447 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2579, allocations: 0 / 447 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003456/0.2583, allocations: 238.5 kB / 447.3 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004329/0.2587, allocations: 54.7 kB / 447.3 MB, free: 6.766 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003454/0.2622, allocations: 2.751 MB / 450.1 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003772/0.2625, allocations: 0.7603 MB / 450.8 MB, free: 3.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.599e-05/0.2626, allocations: 18.3 kB / 450.9 MB, free: 3.102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001258/0.2627, allocations: 79.34 kB / 450.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2627, allocations: 4 kB / 450.9 MB, free: 3.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03099/0.2937, allocations: 5.585 MB / 456.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.56, allocations: 14.22 kB / 456.5 MB, free: 13.58 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.941334811970592]