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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 97.73 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007806/0.0007808, allocations: 39.94 kB / 350 MB, free: 84 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2213, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.0044/0.2258, allocations: 4.308 MB / 403.8 MB, free: 29.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002014/0.2278, allocations: 1.38 MB / 405.2 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002808/0.2282, allocations: 11.94 kB / 405.2 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002828/0.2284, allocations: 83.31 kB / 405.3 MB, free: 27.58 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003017/0.2288, allocations: 198.4 kB / 405.4 MB, free: 27.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008001/0.2296, allocations: 384.7 kB / 405.8 MB, free: 27.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007136/0.2303, allocations: 1.077 MB / 406.9 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002826/0.2306, allocations: 218.9 kB / 407.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003678/0.231, allocations: 450.4 kB / 407.6 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003656/0.2313, allocations: 0.4902 MB / 408 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.899e-05/0.2314, allocations: 56 kB / 408.1 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002145/0.2317, allocations: 104 kB / 408.2 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001572/0.2318, allocations: 195.3 kB / 408.4 MB, free: 24.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00028/0.2321, allocations: 409.9 kB / 408.8 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006316/0.2328, allocations: 1.006 MB / 409.8 MB, free: 23.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2328, allocations: 0 / 409.8 MB, free: 23.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2328, allocations: 0 / 409.8 MB, free: 23.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.347e-06/0.2328, allocations: 0 / 409.8 MB, free: 23.01 MB / 298.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.00279/0.2356, allocations: 1.287 MB / 411.1 MB, free: 21.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.2357, allocations: 8.031 kB / 411.1 MB, free: 21.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002148/0.2359, allocations: 87.91 kB / 411.2 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004732/0.2364, allocations: 437.6 kB / 411.6 MB, free: 21.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.898e-05/0.2364, allocations: 58.36 kB / 411.7 MB, free: 21.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.2365, allocations: 72.28 kB / 411.7 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.2378, allocations: 0.8116 MB / 412.5 MB, free: 20.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.67e-05/0.2379, allocations: 4 kB / 412.5 MB, free: 20.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.75e-05/0.238, allocations: 24 kB / 412.6 MB, free: 20.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.238, allocations: 16 kB / 412.6 MB, free: 20.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001663/0.2396, allocations: 0.8743 MB / 413.5 MB, free: 19.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003491/0.2431, allocations: 2.396 MB / 415.9 MB, free: 16.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.2444, allocations: 0.7051 MB / 416.6 MB, free: 16.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000824/0.2453, allocations: 476.2 kB / 417 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.154e-05/0.2454, allocations: 16.92 kB / 417 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00107/0.2465, allocations: 0.5516 MB / 417.6 MB, free: 14.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 3.757e-06/0.2465, allocations: 0 / 417.6 MB, free: 14.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.009484/0.256, allocations: 4.221 MB / 421.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.2561, allocations: 64.41 kB / 421.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003825/0.2564, allocations: 389.9 kB / 422.3 MB, free: 10.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.973e-05/0.2565, allocations: 57.69 kB / 422.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.2567, allocations: 265 kB / 422.6 MB, free: 9.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002337/0.2569, allocations: 358.9 kB / 422.9 MB, free: 9.465 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002697/0.2572, allocations: 182.9 kB / 423.1 MB, free: 9.281 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.68e-05/0.2573, allocations: 382.8 kB / 423.5 MB, free: 8.898 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008349/0.2581, allocations: 434.4 kB / 423.9 MB, free: 8.473 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008632/0.259, allocations: 0.5305 MB / 424.4 MB, free: 7.926 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.2604, allocations: 0.7792 MB / 425.2 MB, free: 7.129 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.2604, allocations: 7.938 kB / 425.2 MB, free: 7.121 MB / 298.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002569/0.263, allocations: 1.354 MB / 426.6 MB, free: 5.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.263, allocations: 8 kB / 426.6 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.263, allocations: 0 / 426.6 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009248/0.264, allocations: 0.6426 MB / 427.2 MB, free: 5.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000685/0.2647, allocations: 207.7 kB / 427.4 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003072/0.2678, allocations: 3.267 MB / 430.7 MB, free: 1.422 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/0.2689, allocations: 179.9 kB / 430.9 MB, free: 1.246 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-05/0.269, allocations: 35.98 kB / 430.9 MB, free: 1.211 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.000332/0.2693, allocations: 225.7 kB / 431.1 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.2694, allocations: 71.19 kB / 431.2 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002075/0.2696, allocations: 103 kB / 431.3 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.2697, allocations: 8 kB / 431.3 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.2697, allocations: 0 / 431.3 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.2697, allocations: 3.984 kB / 431.3 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004266/0.274, allocations: 2.53 MB / 433.8 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.274, allocations: 3.938 kB / 433.8 MB, free: 14.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007498/0.2748, allocations: 180 kB / 434 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001006/0.2758, allocations: 0.6153 MB / 434.6 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.191e-05/0.2759, allocations: 31.97 kB / 434.7 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00331/0.2792, allocations: 3.104 MB / 437.8 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.2792, allocations: 4.031 kB / 437.8 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02254/0.3018, allocations: 13.26 MB / 451 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004171/0.3022, allocations: 232.1 kB / 451.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.3024, allocations: 31.94 kB / 451.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.3037, allocations: 211.8 kB / 451.5 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008679/0.3045, allocations: 364.4 kB / 451.9 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.667e-05/0.3047, allocations: 43.95 kB / 451.9 MB, free: 11.25 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002757/0.3049, allocations: 271.2 kB / 452.2 MB, free: 10.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.305, allocations: 4 kB / 452.2 MB, free: 10.97 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001106/0.3061, allocations: 352 kB / 452.5 MB, free: 10.63 MB / 330.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.0003884/0.3065, allocations: 192.8 kB / 452.7 MB, free: 10.43 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002547/0.309, allocations: 1.188 MB / 453.9 MB, free: 9.234 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.309, allocations: 0 / 453.9 MB, free: 9.234 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001567/0.3106, allocations: 0.7781 MB / 454.7 MB, free: 8.445 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000792/0.3114, allocations: 128.2 kB / 454.8 MB, free: 8.324 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00496/0.3164, allocations: 3.186 MB / 458 MB, free: 5.035 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006256/0.317, allocations: 0.9561 MB / 458.9 MB, free: 4.051 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005102/0.3176, allocations: 97.36 kB / 459 MB, free: 3.953 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000252/0.3178, allocations: 63.41 kB / 459.1 MB, free: 3.891 MB / 330.7 MB Notification: Performance of SimCode: time 4.81e-07/0.3178, allocations: 0 / 459.1 MB, free: 3.891 MB / 330.7 MB Notification: Performance of Templates: time 0.02883/0.3467, allocations: 20.64 MB / 479.7 MB, free: 15.3 MB / 362.7 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@2/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