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.001115/0.001115, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001091/0.001091, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.422/1.422, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 53.81 kB / 301.3 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.105, allocations: 49.44 MB / 350.7 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005917/0.1109, allocations: 4.307 MB / 355 MB, free: 76 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002664/0.1136, allocations: 1.372 MB / 356.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005221/0.1142, allocations: 11.94 kB / 356.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004078/0.1146, allocations: 114.8 kB / 356.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006375/0.1153, allocations: 230 kB / 356.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001135/0.1164, allocations: 431.5 kB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.1177, allocations: 1.123 MB / 358.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000412/0.1182, allocations: 261.6 kB / 358.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008258/0.119, allocations: 486.5 kB / 359 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008715/0.1199, allocations: 0.5176 MB / 359.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002908/0.1202, allocations: 92 kB / 359.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004509/0.1206, allocations: 144 kB / 359.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003135/0.121, allocations: 223.3 kB / 360 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006572/0.1216, allocations: 449.9 kB / 360.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001254/0.1229, allocations: 1.048 MB / 361.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1229, allocations: 0 / 361.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1229, allocations: 0 / 361.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.234e-05/0.123, allocations: 0 / 361.5 MB, free: 9.59 MB / 302.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.003625/0.1266, allocations: 1.283 MB / 362.8 MB, free: 8.258 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.1267, allocations: 12.03 kB / 362.8 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002643/0.1269, allocations: 84 kB / 362.9 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006468/0.1276, allocations: 433.6 kB / 363.3 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.997e-05/0.1277, allocations: 58.38 kB / 363.3 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.1278, allocations: 76.27 kB / 363.4 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.1295, allocations: 0.8077 MB / 364.2 MB, free: 6.754 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.743e-05/0.1295, allocations: 7.938 kB / 364.2 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.312e-05/0.1296, allocations: 28 kB / 364.3 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.831e-05/0.1297, allocations: 19.98 kB / 364.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002008/0.1317, allocations: 0.8704 MB / 365.1 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004475/0.1362, allocations: 2.388 MB / 367.5 MB, free: 3.312 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001528/0.1377, allocations: 0.7152 MB / 368.2 MB, free: 2.586 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009567/0.1387, allocations: 480.2 kB / 368.7 MB, free: 2.117 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.988e-05/0.1388, allocations: 12.98 kB / 368.7 MB, free: 2.105 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001282/0.1401, allocations: 0.5516 MB / 369.3 MB, free: 1.539 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 3.687e-06/0.1401, allocations: 0 / 369.3 MB, free: 1.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=106): time 0.1811/0.3212, allocations: 4.207 MB / 373.5 MB, free: 25.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.567e-05/0.3213, allocations: 63.62 kB / 373.6 MB, free: 24.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004816/0.3218, allocations: 399.4 kB / 373.9 MB, free: 24.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.477e-05/0.3219, allocations: 55.97 kB / 374 MB, free: 24.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001863/0.3221, allocations: 264.6 kB / 374.3 MB, free: 24.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002603/0.3223, allocations: 361.6 kB / 374.6 MB, free: 24.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003382/0.3227, allocations: 185.2 kB / 374.8 MB, free: 24.13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.3228, allocations: 373.9 kB / 375.2 MB, free: 23.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/0.3238, allocations: 441.8 kB / 375.6 MB, free: 23.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.3249, allocations: 0.5273 MB / 376.1 MB, free: 23.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001685/0.3266, allocations: 0.7842 MB / 376.9 MB, free: 23.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.3266, allocations: 0.875 kB / 376.9 MB, free: 23.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003256/0.3299, allocations: 1.352 MB / 378.2 MB, free: 22.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.3299, allocations: 9.5 kB / 378.3 MB, free: 22.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.3299, allocations: 5.859 kB / 378.3 MB, free: 22.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001116/0.3311, allocations: 0.6513 MB / 378.9 MB, free: 22.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007951/0.3319, allocations: 204.3 kB / 379.1 MB, free: 22.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003808/0.3357, allocations: 3.438 MB / 382.6 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/0.337, allocations: 179 kB / 382.7 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.182e-05/0.3371, allocations: 36.19 kB / 382.8 MB, free: 19.38 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.0003816/0.3375, allocations: 225.5 kB / 383 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001513/0.3376, allocations: 70.72 kB / 383.1 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00021/0.3379, allocations: 105.1 kB / 383.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.3379, allocations: 9.438 kB / 383.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.862e-05/0.3379, allocations: 5.094 kB / 383.2 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.3379, allocations: 8.969 kB / 383.2 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004676/0.3426, allocations: 2.518 MB / 385.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.3426, allocations: 2.406 kB / 385.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008213/0.3435, allocations: 172 kB / 385.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.3446, allocations: 0.6202 MB / 386.5 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-05/0.3447, allocations: 39.64 kB / 386.5 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003243/0.3479, allocations: 3.215 MB / 389.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.3479, allocations: 7.453 kB / 389.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00389/0.3518, allocations: 1.848 MB / 391.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003784/0.3522, allocations: 240.3 kB / 391.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.3524, allocations: 39.34 kB / 391.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001251/0.3536, allocations: 199.9 kB / 392.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000737/0.3544, allocations: 377.2 kB / 392.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.039e-05/0.3545, allocations: 39.2 kB / 392.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002375/0.3547, allocations: 268.6 kB / 392.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3547, allocations: 3.75 kB / 392.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008394/0.3556, allocations: 251.9 kB / 393 MB, free: 13.53 MB / 302.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.0002771/0.3559, allocations: 164.1 kB / 393.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002929/0.3588, allocations: 1.23 MB / 394.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3588, allocations: 1.219 kB / 394.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001376/0.3602, allocations: 0.7348 MB / 395.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008543/0.3611, allocations: 135.3 kB / 395.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003535/0.3646, allocations: 2.004 MB / 397.2 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.3649, allocations: 0.9326 MB / 398.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002251/0.3652, allocations: 73.75 kB / 398.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3652, allocations: 3.969 kB / 398.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Templates: time 0.01765/0.3828, allocations: 17.46 MB / 415.7 MB, free: 8.723 MB / 318.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches