Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 121.3 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 189.2 kB / 21.39 MB, free: 1.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 207.6 MB / 231.8 MB, free: 4.086 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 60.33 kB / 342.3 MB, free: 10.14 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1016, allocations: 49.12 MB / 391.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006116/0.1078, allocations: 4.326 MB / 395.7 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002666/0.1104, allocations: 1.365 MB / 397.1 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002421/0.1107, allocations: 15.94 kB / 397.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003392/0.111, allocations: 110.9 kB / 397.2 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003985/0.1114, allocations: 226 kB / 397.4 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001089/0.1125, allocations: 431.2 kB / 397.8 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00123/0.1137, allocations: 1.139 MB / 399 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003326/0.1141, allocations: 189.7 kB / 399.1 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006026/0.1147, allocations: 482.6 kB / 399.6 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006346/0.1153, allocations: 0.5176 MB / 400.1 MB, free: 28 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001667/0.1155, allocations: 92.05 kB / 400.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002962/0.1158, allocations: 143.8 kB / 400.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002694/0.116, allocations: 231.2 kB / 400.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004645/0.1165, allocations: 442 kB / 401 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001255/0.1177, allocations: 1.07 MB / 402.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.1178, allocations: 7.984 kB / 402.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1178, allocations: 0 / 402.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.362e-05/0.1178, allocations: 0 / 402.1 MB, free: 14.05 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003318/0.1211, allocations: 1.297 MB / 403.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.1211, allocations: 16.03 kB / 403.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001617/0.1213, allocations: 114.7 kB / 403.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002267/0.1215, allocations: 88.42 kB / 403.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007878/0.1223, allocations: 453.9 kB / 404.1 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.708e-05/0.1224, allocations: 54.38 kB / 404.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.1225, allocations: 68.33 kB / 404.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/0.1242, allocations: 0.8075 MB / 405 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.1242, allocations: 11.95 kB / 405 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.467e-05/0.1243, allocations: 27.98 kB / 405 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.225e-05/0.1243, allocations: 16 kB / 405 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/0.1262, allocations: 0.8743 MB / 405.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004244/0.1305, allocations: 2.373 MB / 408.3 MB, free: 7.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001455/0.1319, allocations: 0.6759 MB / 409 MB, free: 6.953 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00092/0.1329, allocations: 428.3 kB / 409.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.801e-05/0.1329, allocations: 13 kB / 409.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001147/0.1341, allocations: 0.5477 MB / 409.9 MB, free: 5.961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 3.557e-06/0.1341, allocations: 0 / 409.9 MB, free: 5.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01071/0.1448, allocations: 4.241 MB / 414.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.1448, allocations: 64.41 kB / 414.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004861/0.1453, allocations: 390 kB / 414.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.629e-05/0.1454, allocations: 57.7 kB / 414.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002215/0.1456, allocations: 273.5 kB / 415 MB, free: 0.793 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003244/0.146, allocations: 376.8 kB / 415.3 MB, free: 432 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003085/0.1463, allocations: 186.9 kB / 415.5 MB, free: 236 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002082/0.1465, allocations: 374.8 kB / 415.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009702/0.1475, allocations: 438.4 kB / 416.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.1485, allocations: 0.5344 MB / 416.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001641/0.1502, allocations: 0.7792 MB / 417.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1502, allocations: 0 / 417.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003047/0.1532, allocations: 1.35 MB / 419 MB, free: 12.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.1532, allocations: 4 kB / 419 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.1532, allocations: 3.984 kB / 419 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.1544, allocations: 0.6427 MB / 419.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007789/0.1552, allocations: 203.6 kB / 419.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004282/0.1595, allocations: 3.45 MB / 423.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001179/0.1606, allocations: 183.9 kB / 423.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.347e-05/0.1607, allocations: 35.98 kB / 423.5 MB, free: 7.992 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004769/0.1612, allocations: 221.5 kB / 423.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.1614, allocations: 71.58 kB / 423.8 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002341/0.1616, allocations: 111 kB / 423.9 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.1616, allocations: 12 kB / 423.9 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.1616, allocations: 0 / 423.9 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.1616, allocations: 3.984 kB / 423.9 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004866/0.1665, allocations: 2.49 MB / 426.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.595e-06/0.1665, allocations: 4 kB / 426.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007859/0.1673, allocations: 183.9 kB / 426.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001108/0.1684, allocations: 0.6153 MB / 427.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.265e-05/0.1685, allocations: 35.95 kB / 427.2 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003902/0.1724, allocations: 3.219 MB / 430.4 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.1724, allocations: 4.219 kB / 430.4 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003875/0.1763, allocations: 1.841 MB / 432.3 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000446/0.1767, allocations: 236.5 kB / 432.5 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001318/0.1769, allocations: 35.94 kB / 432.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/0.178, allocations: 203.7 kB / 432.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009338/0.179, allocations: 380.4 kB / 433.1 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.823e-05/0.1791, allocations: 47.95 kB / 433.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003542/0.1794, allocations: 267.2 kB / 433.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1794, allocations: 0 / 433.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008696/0.1803, allocations: 248 kB / 433.7 MB, free: 13.42 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00456/0.1848, allocations: 2.438 MB / 436.1 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00265/0.1875, allocations: 1.122 MB / 437.2 MB, free: 9.789 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.1875, allocations: 7.938 kB / 437.2 MB, free: 9.781 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001626/0.1891, allocations: 0.7353 MB / 438 MB, free: 9.035 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007947/0.1899, allocations: 141.8 kB / 438.1 MB, free: 8.895 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0134/0.2033, allocations: 7.327 MB / 445.4 MB, free: 1.379 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006042/0.2039, allocations: 0.9283 MB / 446.4 MB, free: 428 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003717/0.2043, allocations: 81.39 kB / 446.4 MB, free: 344 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003749/0.2047, allocations: 251.3 kB / 446.7 MB, free: 92 kB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2047, allocations: 0 / 446.7 MB, free: 92 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2601/0.4648, allocations: 23.74 MB / 470.4 MB, free: 66.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.23, allocations: 7.984 kB / 470.4 MB, free: 66.43 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.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: 15.924406155012548]