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.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.0009434/0.0009434, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.00432/0.00432, allocations: 166 kB / 24.7 MB, free: 8.887 MB / 18.57 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 0.8004/0.8004, allocations: 158.6 MB / 186.5 MB, free: 3.047 MB / 170.7 MB " [Timeout remaining time 179] 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.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.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: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.776e-05/1.925e-05, allocations: 2.281 kB / 298.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.1193/0.1193, allocations: 3.898 MB / 302.3 MB, free: 13.13 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001919/0.1213, allocations: 1.306 MB / 303.6 MB, free: 13.07 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001838/0.1214, allocations: 15.91 kB / 303.7 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002353/0.1217, allocations: 120.5 kB / 303.8 MB, free: 13 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002508/0.1219, allocations: 242.5 kB / 304 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006565/0.1226, allocations: 437.8 kB / 304.4 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005961/0.1232, allocations: 1.167 MB / 305.6 MB, free: 12.27 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002244/0.1234, allocations: 170.6 kB / 305.8 MB, free: 12.19 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005604/0.124, allocations: 0.6691 MB / 306.4 MB, free: 11.93 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003893/0.1244, allocations: 426 kB / 306.9 MB, free: 11.82 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001071/0.1245, allocations: 92.34 kB / 306.9 MB, free: 11.82 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002008/0.1247, allocations: 149.3 kB / 307.1 MB, free: 11.81 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.1248, allocations: 228.8 kB / 307.3 MB, free: 11.68 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002192/0.125, allocations: 324.9 kB / 307.6 MB, free: 11.55 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007636/0.1258, allocations: 1.155 MB / 308.8 MB, free: 11.15 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1258, allocations: 1.438 kB / 308.8 MB, free: 11.15 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1258, allocations: 0 / 308.8 MB, free: 11.15 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.1258, allocations: 1.594 kB / 308.8 MB, free: 11.15 MB / 282.7 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.001736/0.1275, allocations: 1.345 MB / 310.1 MB, free: 10.43 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.1276, allocations: 13.14 kB / 310.1 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.758e-05/0.1277, allocations: 118 kB / 310.3 MB, free: 10.34 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.1278, allocations: 94.95 kB / 310.4 MB, free: 10.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004675/0.1283, allocations: 387.2 kB / 310.7 MB, free: 10.02 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.098e-05/0.1283, allocations: 51.33 kB / 310.8 MB, free: 9.996 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.247e-05/0.1284, allocations: 73.44 kB / 310.9 MB, free: 9.969 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.1294, allocations: 0.81 MB / 311.7 MB, free: 9.668 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.1295, allocations: 6.25 kB / 311.7 MB, free: 9.664 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.072e-05/0.1295, allocations: 34.05 kB / 311.7 MB, free: 9.637 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.1295, allocations: 16.09 kB / 311.7 MB, free: 9.637 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.1307, allocations: 0.8637 MB / 312.6 MB, free: 9.379 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002486/0.1332, allocations: 1.932 MB / 314.5 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008169/0.134, allocations: 0.6729 MB / 315.2 MB, free: 8.102 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005149/0.1345, allocations: 435.2 kB / 315.6 MB, free: 7.945 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.112e-05/0.1345, allocations: 12.83 kB / 315.6 MB, free: 7.945 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006461/0.1352, allocations: 0.5485 MB / 316.2 MB, free: 7.73 MB / 282.7 MB Notification: Performance of pre-optimization done (n=86): time 2.414e-06/0.1352, allocations: 1.219 kB / 316.2 MB, free: 7.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=106): time 0.005697/0.1409, allocations: 3.863 MB / 320 MB, free: 5.809 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.596e-05/0.1409, allocations: 62.59 kB / 320.1 MB, free: 5.742 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002544/0.1412, allocations: 398.4 kB / 320.5 MB, free: 5.5 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.321e-05/0.1412, allocations: 53.95 kB / 320.5 MB, free: 5.449 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.627e-05/0.1413, allocations: 278.3 kB / 320.8 MB, free: 5.199 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.1414, allocations: 371.3 kB / 321.2 MB, free: 4.875 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.1416, allocations: 189.7 kB / 321.4 MB, free: 4.754 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.794e-05/0.1417, allocations: 373.3 kB / 321.7 MB, free: 4.395 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005594/0.1422, allocations: 448.6 kB / 322.2 MB, free: 4.18 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006043/0.1429, allocations: 0.5249 MB / 322.7 MB, free: 3.887 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000973/0.1438, allocations: 0.7815 MB / 323.5 MB, free: 3.484 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1438, allocations: 0 / 323.5 MB, free: 3.484 MB / 282.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.001724/0.1456, allocations: 1.345 MB / 324.8 MB, free: 2.82 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.1456, allocations: 7.172 kB / 324.8 MB, free: 2.816 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1456, allocations: 1.594 kB / 324.8 MB, free: 2.816 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006643/0.1462, allocations: 0.652 MB / 325.5 MB, free: 2.508 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000396/0.1466, allocations: 201.2 kB / 325.7 MB, free: 2.457 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00216/0.1488, allocations: 3.315 MB / 329 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005185/0.1493, allocations: 177.4 kB / 329.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.665e-05/0.1494, allocations: 36.73 kB / 329.2 MB, free: 15.41 MB / 298.7 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.0002339/0.1496, allocations: 231.5 kB / 329.4 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.796e-05/0.1497, allocations: 75.47 kB / 329.5 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.1498, allocations: 102.7 kB / 329.6 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.1498, allocations: 9.906 kB / 329.6 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.1498, allocations: 3.5 kB / 329.6 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.1498, allocations: 7.984 kB / 329.6 MB, free: 15.08 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002742/0.1526, allocations: 2.261 MB / 331.9 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1526, allocations: 4 kB / 331.9 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003794/0.1529, allocations: 180 kB / 332.1 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006251/0.1536, allocations: 0.6232 MB / 332.7 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.144e-05/0.1536, allocations: 31.97 kB / 332.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002357/0.156, allocations: 3.094 MB / 335.8 MB, free: 8.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.156, allocations: 3.938 kB / 335.8 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002226/0.1582, allocations: 1.841 MB / 337.7 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002315/0.1584, allocations: 159.3 kB / 337.8 MB, free: 6.637 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.734e-05/0.1585, allocations: 39.92 kB / 337.8 MB, free: 6.598 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005767/0.1591, allocations: 203.7 kB / 338 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005631/0.1597, allocations: 388.2 kB / 338.4 MB, free: 6.016 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.115e-05/0.1597, allocations: 39.97 kB / 338.5 MB, free: 5.977 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001801/0.1599, allocations: 275.1 kB / 338.7 MB, free: 5.711 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1599, allocations: 0 / 338.7 MB, free: 5.711 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005111/0.1604, allocations: 244 kB / 339 MB, free: 5.473 MB / 298.7 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.002899/0.1633, allocations: 2.446 MB / 341.4 MB, free: 2.969 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.1648, allocations: 1.13 MB / 342.5 MB, free: 1.828 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1648, allocations: 4 kB / 342.5 MB, free: 1.824 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009206/0.1657, allocations: 0.7426 MB / 343.3 MB, free: 1.066 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005014/0.1662, allocations: 126 kB / 343.4 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007832/0.174, allocations: 7.177 MB / 350.6 MB, free: 9.574 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.1742, allocations: 348.7 kB / 350.9 MB, free: 9.207 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000201/0.1744, allocations: 77.39 kB / 351 MB, free: 9.133 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002388/0.1747, allocations: 248.4 kB / 351.3 MB, free: 8.891 MB / 314.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1747, allocations: 0 / 351.3 MB, free: 8.891 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03295/0.2076, allocations: 22.88 MB / 374.1 MB, free: 1.91 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.309/8.517, allocations: 0 / 374.1 MB, free: 1.91 MB / 330.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 10.095895078033209]