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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 103.9 kB / 17.15 MB, free: 6.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.494/1.494, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB 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.001143/0.001143, allocations: 43.94 kB / 280 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1052, allocations: 46.64 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005918/0.1112, allocations: 4.329 MB / 330.9 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003022/0.1143, allocations: 1.33 MB / 332.3 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002914/0.1146, allocations: 15.94 kB / 332.3 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003603/0.115, allocations: 83.31 kB / 332.4 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003743/0.1154, allocations: 198.4 kB / 332.5 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000904/0.1163, allocations: 371.5 kB / 332.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008878/0.1172, allocations: 1.084 MB / 334 MB, free: 13.45 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003701/0.1176, allocations: 235.1 kB / 334.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005092/0.1181, allocations: 434.5 kB / 334.6 MB, free: 12.79 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004852/0.1186, allocations: 0.4902 MB / 335.1 MB, free: 12.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.1187, allocations: 56 kB / 335.2 MB, free: 12.24 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002758/0.119, allocations: 108 kB / 335.3 MB, free: 12.13 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001984/0.1192, allocations: 187.3 kB / 335.5 MB, free: 11.95 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000364/0.1196, allocations: 413.8 kB / 335.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000884/0.1205, allocations: 1.004 MB / 336.9 MB, free: 10.54 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1205, allocations: 0 / 336.9 MB, free: 10.54 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1205, allocations: 0 / 336.9 MB, free: 10.54 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.1205, allocations: 0 / 336.9 MB, free: 10.54 MB / 286.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.003251/0.1238, allocations: 1.291 MB / 338.2 MB, free: 9.195 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.1238, allocations: 8.031 kB / 338.2 MB, free: 9.188 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002449/0.1241, allocations: 87.91 kB / 338.3 MB, free: 9.102 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005867/0.1247, allocations: 449.6 kB / 338.7 MB, free: 8.621 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.22e-05/0.1247, allocations: 50.38 kB / 338.8 MB, free: 8.57 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.1249, allocations: 68.38 kB / 338.8 MB, free: 8.504 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001689/0.1266, allocations: 0.8077 MB / 339.6 MB, free: 7.691 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.903e-05/0.1266, allocations: 7.906 kB / 339.6 MB, free: 7.684 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.595e-05/0.1267, allocations: 27.98 kB / 339.7 MB, free: 7.656 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.881e-05/0.1267, allocations: 16 kB / 339.7 MB, free: 7.641 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002005/0.1287, allocations: 0.8704 MB / 340.6 MB, free: 6.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004556/0.1333, allocations: 2.388 MB / 342.9 MB, free: 4.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001449/0.1348, allocations: 0.7035 MB / 343.7 MB, free: 3.535 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009505/0.1357, allocations: 484.2 kB / 344.1 MB, free: 3.062 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.794e-05/0.1358, allocations: 12.98 kB / 344.1 MB, free: 3.051 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001252/0.1371, allocations: 0.5478 MB / 344.7 MB, free: 2.488 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 3.046e-06/0.1371, allocations: 0 / 344.7 MB, free: 2.488 MB / 286.1 MB Notification: Performance of matching and sorting (n=106): time 0.01154/0.1487, allocations: 4.216 MB / 348.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/0.1487, allocations: 68.41 kB / 349 MB, free: 14.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000469/0.1492, allocations: 389.9 kB / 349.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.898e-05/0.1493, allocations: 53.7 kB / 349.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000207/0.1495, allocations: 276.9 kB / 349.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003557/0.1499, allocations: 354.9 kB / 350 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003306/0.1502, allocations: 186.8 kB / 350.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002128/0.1505, allocations: 374.8 kB / 350.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001151/0.1516, allocations: 438.4 kB / 351 MB, free: 12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001135/0.1528, allocations: 0.5344 MB / 351.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001874/0.1547, allocations: 0.7792 MB / 352.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.1547, allocations: 0 / 352.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003834/0.1585, allocations: 1.35 MB / 353.7 MB, free: 9.281 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.1586, allocations: 8 kB / 353.7 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.1586, allocations: 3.984 kB / 353.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.1599, allocations: 0.6465 MB / 354.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000802/0.1607, allocations: 211.6 kB / 354.5 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004772/0.1655, allocations: 3.262 MB / 357.8 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.1668, allocations: 175.9 kB / 358 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.1669, allocations: 35.98 kB / 358 MB, free: 4.75 MB / 302.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.0005391/0.1675, allocations: 237.5 kB / 358.2 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002163/0.1677, allocations: 79.09 kB / 358.3 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000257/0.168, allocations: 95.02 kB / 358.4 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.168, allocations: 12 kB / 358.4 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.168, allocations: 0 / 358.4 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.168, allocations: 7.969 kB / 358.4 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00524/0.1733, allocations: 2.526 MB / 360.9 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.1733, allocations: 0 / 360.9 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008011/0.1741, allocations: 184 kB / 361.1 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001131/0.1752, allocations: 0.6232 MB / 361.7 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/0.1754, allocations: 35.95 kB / 361.8 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003928/0.1793, allocations: 3.093 MB / 364.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/0.1793, allocations: 8.203 kB / 364.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004328/0.1837, allocations: 1.844 MB / 366.7 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000466/0.1842, allocations: 236.1 kB / 367 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/0.1843, allocations: 36 kB / 367 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00138/0.1857, allocations: 203.7 kB / 367.2 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009527/0.1867, allocations: 372.3 kB / 367.6 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/0.1868, allocations: 47.95 kB / 367.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003349/0.1872, allocations: 267.1 kB / 367.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1872, allocations: 0 / 367.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009015/0.1881, allocations: 244 kB / 368.1 MB, free: 10.26 MB / 318.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.0003558/0.1884, allocations: 168.8 kB / 368.3 MB, free: 10.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002796/0.1912, allocations: 1.181 MB / 369.4 MB, free: 8.898 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.1913, allocations: 4 kB / 369.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001714/0.193, allocations: 0.778 MB / 370.2 MB, free: 8.102 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009241/0.1939, allocations: 121.4 kB / 370.3 MB, free: 7.984 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004279/0.1982, allocations: 2.267 MB / 372.6 MB, free: 5.668 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000604/0.1988, allocations: 0.9361 MB / 373.5 MB, free: 4.699 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004536/0.1993, allocations: 77.44 kB / 373.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002086/0.1995, allocations: 55.42 kB / 373.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1995, allocations: 0 / 373.7 MB, free: 4.57 MB / 318.1 MB Notification: Performance of Templates: time 0.1858/0.3854, allocations: 16.08 MB / 389.8 MB, free: 49.82 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) 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","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches