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.001018/0.001018, allocations: 95.5 kB / 16.94 MB, free: 6.441 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.0009195/0.0009196, allocations: 187.5 kB / 17.83 MB, free: 6.008 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.636/1.636, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004578/0.000458, allocations: 12 kB / 280.8 MB, free: 3.758 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1063, allocations: 47.58 MB / 328.3 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004649/0.111, allocations: 3.485 MB / 331.8 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003086/0.1141, allocations: 1.319 MB / 333.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006843/0.1148, allocations: 8 kB / 333.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000417/0.1153, allocations: 79.38 kB / 333.2 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009118/0.1162, allocations: 251.2 kB / 333.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.1176, allocations: 327.3 kB / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001486/0.1191, allocations: 0.6962 MB / 334.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004162/0.1195, allocations: 203.4 kB / 334.7 MB, free: 13.71 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008251/0.1203, allocations: 406.7 kB / 335.1 MB, free: 13.31 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000856/0.1212, allocations: 458.2 kB / 335.5 MB, free: 12.86 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002607/0.1215, allocations: 48 kB / 335.6 MB, free: 12.81 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004169/0.1219, allocations: 95.94 kB / 335.7 MB, free: 12.72 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000314/0.1222, allocations: 179.3 kB / 335.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003232/0.1226, allocations: 153.3 kB / 336 MB, free: 12.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009239/0.1235, allocations: 0.7439 MB / 336.7 MB, free: 11.64 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.1235, allocations: 4 kB / 336.7 MB, free: 11.64 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1235, allocations: 0 / 336.7 MB, free: 11.64 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.1235, allocations: 0 / 336.7 MB, free: 11.64 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.002783/0.1263, allocations: 1.217 MB / 338 MB, free: 10.37 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.841e-05/0.1264, allocations: 8.031 kB / 338 MB, free: 10.36 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002214/0.1266, allocations: 86.97 kB / 338 MB, free: 10.28 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005416/0.1271, allocations: 436.6 kB / 338.5 MB, free: 9.812 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.217e-05/0.1272, allocations: 50 kB / 338.5 MB, free: 9.762 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.1273, allocations: 79.91 kB / 338.6 MB, free: 9.684 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.1289, allocations: 0.8076 MB / 339.4 MB, free: 8.871 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.464e-05/0.1289, allocations: 4 kB / 339.4 MB, free: 8.867 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.018e-05/0.129, allocations: 24 kB / 339.4 MB, free: 8.844 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.129, allocations: 16 kB / 339.5 MB, free: 8.828 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001865/0.1309, allocations: 0.8978 MB / 340.3 MB, free: 7.93 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004166/0.1351, allocations: 2.462 MB / 342.8 MB, free: 5.332 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00139/0.1365, allocations: 0.7309 MB / 343.5 MB, free: 4.594 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.191e-05/0.1365, allocations: 12.94 kB / 343.6 MB, free: 4.582 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001104/0.1377, allocations: 0.5556 MB / 344.1 MB, free: 4.016 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 3.607e-06/0.1377, allocations: 0 / 344.1 MB, free: 4.016 MB / 286.1 MB Notification: Performance of matching and sorting (n=106): time 0.01057/0.1482, allocations: 4.473 MB / 348.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/0.1483, allocations: 60.41 kB / 348.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004248/0.1488, allocations: 389.8 kB / 349 MB, free: 14.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.957e-05/0.1489, allocations: 53.69 kB / 349.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.149, allocations: 273 kB / 349.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002674/0.1493, allocations: 355 kB / 349.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.772e-05/0.1494, allocations: 24 kB / 349.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.1495, allocations: 370.8 kB / 350.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009005/0.1504, allocations: 450.4 kB / 350.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000986/0.1514, allocations: 0.5423 MB / 351.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008212/0.1523, allocations: 390.3 kB / 351.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.1523, allocations: 4 kB / 351.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002848/0.1551, allocations: 1.373 MB / 352.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.1552, allocations: 11.94 kB / 352.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.425e-06/0.1552, allocations: 0 / 352.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/0.1563, allocations: 0.6504 MB / 353.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007629/0.1571, allocations: 207.7 kB / 353.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003872/0.161, allocations: 3.31 MB / 357 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.1623, allocations: 243.8 kB / 357.2 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.606e-05/0.1624, allocations: 35.98 kB / 357.3 MB, free: 6.453 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,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004765/0.1629, allocations: 225.5 kB / 357.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.163, allocations: 71.23 kB / 357.6 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/0.1632, allocations: 107 kB / 357.7 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.1632, allocations: 12 kB / 357.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.1633, allocations: 0 / 357.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.1633, allocations: 3.984 kB / 357.7 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004539/0.1678, allocations: 2.55 MB / 360.2 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.1678, allocations: 4 kB / 360.2 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007695/0.1686, allocations: 187.9 kB / 360.4 MB, free: 3.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001063/0.1697, allocations: 0.6192 MB / 361 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.528e-05/0.1698, allocations: 31.97 kB / 361.1 MB, free: 2.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003379/0.1732, allocations: 3.151 MB / 364.2 MB, free: 15.19 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.1732, allocations: 4 kB / 364.2 MB, free: 15.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003649/0.1768, allocations: 1.962 MB / 366.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004306/0.1773, allocations: 248 kB / 366.4 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.1774, allocations: 32 kB / 366.5 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.1787, allocations: 271.7 kB / 366.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008607/0.1796, allocations: 420.1 kB / 367.1 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.134e-05/0.1797, allocations: 47.97 kB / 367.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002925/0.18, allocations: 267.1 kB / 367.4 MB, free: 11.86 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.18, allocations: 0 / 367.4 MB, free: 11.86 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000821/0.1808, allocations: 248 kB / 367.7 MB, free: 11.61 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000302/0.1811, allocations: 168.5 kB / 367.8 MB, free: 11.44 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002568/0.1837, allocations: 1.212 MB / 369.1 MB, free: 10.22 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.1837, allocations: 4 kB / 369.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001567/0.1853, allocations: 0.782 MB / 369.8 MB, free: 9.418 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006902/0.186, allocations: 113 kB / 370 MB, free: 9.312 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004248/0.1903, allocations: 2.377 MB / 372.3 MB, free: 6.891 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005697/0.1909, allocations: 0.9478 MB / 373.3 MB, free: 5.918 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004053/0.1913, allocations: 81.44 kB / 373.4 MB, free: 5.836 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001748/0.1915, allocations: 55.42 kB / 373.4 MB, free: 5.781 MB / 318.1 MB Notification: Performance of SimCode: time 1.452e-06/0.1915, allocations: 0 / 373.4 MB, free: 5.781 MB / 318.1 MB Notification: Performance of Templates: time 0.2493/0.4408, allocations: 15.4 MB / 388.8 MB, free: 50.45 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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