Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.0009105/0.0009106, allocations: 95.22 kB / 16.3 MB, free: 6.457 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.0009063/0.0009063, allocations: 184.5 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002704/0.0002705, allocations: 8.5 kB / 300.7 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08979/0.09008, allocations: 50.42 MB / 351.1 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004016/0.09414, allocations: 3.497 MB / 354.6 MB, free: 8.234 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002332/0.0965, allocations: 1.345 MB / 356 MB, free: 6.887 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002312/0.09675, allocations: 11.94 kB / 356 MB, free: 6.875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002012/0.09696, allocations: 79.38 kB / 356.1 MB, free: 6.797 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004057/0.09738, allocations: 243.3 kB / 356.3 MB, free: 6.559 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00074/0.09812, allocations: 338.3 kB / 356.6 MB, free: 6.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006757/0.09881, allocations: 0.6962 MB / 357.3 MB, free: 5.527 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003186/0.09914, allocations: 199.1 kB / 357.5 MB, free: 5.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005022/0.09964, allocations: 414.7 kB / 357.9 MB, free: 4.914 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000546/0.1002, allocations: 466.3 kB / 358.4 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.651e-05/0.1003, allocations: 44 kB / 358.4 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002444/0.1006, allocations: 91.91 kB / 358.5 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001949/0.1008, allocations: 175.4 kB / 358.7 MB, free: 4.152 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.1009, allocations: 157.3 kB / 358.8 MB, free: 3.992 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006555/0.1016, allocations: 0.7284 MB / 359.6 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.1016, allocations: 4 kB / 359.6 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1016, allocations: 0 / 359.6 MB, free: 3.258 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.1016, allocations: 0 / 359.6 MB, free: 3.258 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.002804/0.1044, allocations: 1.221 MB / 360.8 MB, free: 1.988 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.1045, allocations: 12.03 kB / 360.8 MB, free: 1.977 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001962/0.1047, allocations: 83.06 kB / 360.9 MB, free: 1.895 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005746/0.1052, allocations: 428.6 kB / 361.3 MB, free: 1.438 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.761e-05/0.1053, allocations: 50 kB / 361.4 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.1054, allocations: 75.84 kB / 361.4 MB, free: 1.312 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/0.107, allocations: 0.8154 MB / 362.2 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.641e-05/0.107, allocations: 3.906 kB / 362.2 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.95e-05/0.1071, allocations: 39.94 kB / 362.3 MB, free: 460 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.1071, allocations: 16 kB / 362.3 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.109, allocations: 0.8978 MB / 363.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003968/0.113, allocations: 2.451 MB / 365.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/0.1144, allocations: 0.7269 MB / 366.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.864e-05/0.1145, allocations: 12.98 kB / 366.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001121/0.1156, allocations: 0.5595 MB / 367 MB, free: 11.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 2.124e-06/0.1156, allocations: 0 / 367 MB, free: 11.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=106): time 0.01057/0.1262, allocations: 4.464 MB / 371.4 MB, free: 7.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.339e-05/0.1262, allocations: 64.41 kB / 371.5 MB, free: 6.969 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003774/0.1266, allocations: 389.8 kB / 371.9 MB, free: 6.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.763e-05/0.1267, allocations: 53.69 kB / 371.9 MB, free: 6.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.1269, allocations: 280.9 kB / 372.2 MB, free: 6.238 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002415/0.1271, allocations: 355 kB / 372.5 MB, free: 5.887 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.889e-05/0.1272, allocations: 24 kB / 372.6 MB, free: 5.863 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1273, allocations: 370.7 kB / 372.9 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009257/0.1283, allocations: 454.4 kB / 373.4 MB, free: 5.051 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009882/0.1293, allocations: 0.5345 MB / 373.9 MB, free: 4.496 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008248/0.1301, allocations: 398.3 kB / 374.3 MB, free: 4.105 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.1301, allocations: 0 / 374.3 MB, free: 4.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002839/0.133, allocations: 1.369 MB / 375.7 MB, free: 2.719 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.133, allocations: 4 kB / 375.7 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.133, allocations: 0 / 375.7 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.1341, allocations: 0.6504 MB / 376.3 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007878/0.1349, allocations: 211.7 kB / 376.5 MB, free: 1.848 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003695/0.1386, allocations: 3.314 MB / 379.8 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.1398, allocations: 235.9 kB / 380.1 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-05/0.1399, allocations: 35.98 kB / 380.1 MB, free: 14.08 MB / 318.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.00033/0.1402, allocations: 225.8 kB / 380.3 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.1403, allocations: 71.12 kB / 380.4 MB, free: 13.78 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002105/0.1405, allocations: 103 kB / 380.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.1406, allocations: 16 kB / 380.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1406, allocations: 0 / 380.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.1406, allocations: 11.92 kB / 380.5 MB, free: 13.65 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004295/0.1449, allocations: 2.55 MB / 383.1 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.1449, allocations: 4.109 kB / 383.1 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007866/0.1457, allocations: 195.9 kB / 383.3 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001251/0.147, allocations: 0.6114 MB / 383.9 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.1471, allocations: 35.92 kB / 383.9 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003491/0.1506, allocations: 3.136 MB / 387 MB, free: 6.824 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/0.1506, allocations: 16.11 kB / 387.1 MB, free: 6.809 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003758/0.1544, allocations: 1.965 MB / 389 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003499/0.1547, allocations: 232.1 kB / 389.2 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.1549, allocations: 36 kB / 389.3 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.1562, allocations: 279.7 kB / 389.6 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008458/0.157, allocations: 432 kB / 390 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.247e-05/0.1571, allocations: 43.95 kB / 390 MB, free: 3.734 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002583/0.1574, allocations: 263.2 kB / 390.3 MB, free: 3.473 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1574, allocations: 0 / 390.3 MB, free: 3.473 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007804/0.1582, allocations: 244 kB / 390.5 MB, free: 3.234 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.0003232/0.1585, allocations: 168.8 kB / 390.7 MB, free: 3.059 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002399/0.1609, allocations: 1.212 MB / 391.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.161, allocations: 0 / 391.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001507/0.1625, allocations: 0.7821 MB / 392.7 MB, free: 1.047 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006049/0.1631, allocations: 112 kB / 392.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003712/0.1668, allocations: 2.381 MB / 395.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004291/0.1672, allocations: 0.9439 MB / 396.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003204/0.1676, allocations: 81.44 kB / 396.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001659/0.1677, allocations: 55.42 kB / 396.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1678, allocations: 0 / 396.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of Templates: time 0.02101/0.1888, allocations: 15.4 MB / 411.6 MB, free: 14.07 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches