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.001544/0.001544, allocations: 110.9 kB / 17.74 MB, free: 5.352 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.001862/0.001862, allocations: 192.5 kB / 18.67 MB, free: 4.426 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.401/1.401, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001087, allocations: 39.94 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3018, allocations: 49.44 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006051/0.3079, allocations: 4.298 MB / 405.7 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003056/0.311, allocations: 1.387 MB / 407.1 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006087/0.3117, allocations: 11.94 kB / 407.1 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004813/0.3122, allocations: 114.8 kB / 407.2 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006539/0.3129, allocations: 226 kB / 407.4 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.3141, allocations: 429.5 kB / 407.8 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001163/0.3153, allocations: 1.131 MB / 409 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003927/0.3157, allocations: 261.6 kB / 409.2 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000588/0.3163, allocations: 482.6 kB / 409.7 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005821/0.3169, allocations: 0.5254 MB / 410.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001379/0.317, allocations: 92 kB / 410.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003126/0.3174, allocations: 147.9 kB / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002151/0.3176, allocations: 219.3 kB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003992/0.318, allocations: 449.9 kB / 411.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001025/0.319, allocations: 1.064 MB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.319, allocations: 0 / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.319, allocations: 0 / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.3191, allocations: 0 / 412.2 MB, free: 14.04 MB / 334.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.00317/0.3222, allocations: 1.291 MB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.3223, allocations: 12.03 kB / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000226/0.3225, allocations: 87.91 kB / 413.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007351/0.3233, allocations: 449.6 kB / 414 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.648e-05/0.3233, allocations: 50.38 kB / 414.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.3235, allocations: 72.38 kB / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/0.3251, allocations: 0.8077 MB / 414.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/0.3251, allocations: 3.906 kB / 414.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.604e-05/0.3252, allocations: 35.98 kB / 415 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.3252, allocations: 16 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001941/0.3272, allocations: 0.8704 MB / 415.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004159/0.3314, allocations: 2.365 MB / 418.2 MB, free: 7.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.3328, allocations: 0.7112 MB / 418.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009462/0.3338, allocations: 480.2 kB / 419.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.189e-05/0.3339, allocations: 16.97 kB / 419.4 MB, free: 6.559 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001143/0.335, allocations: 0.5478 MB / 420 MB, free: 6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 3.287e-06/0.3351, allocations: 0 / 420 MB, free: 6 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.01131/0.3464, allocations: 4.216 MB / 424.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/0.3465, allocations: 64.41 kB / 424.3 MB, free: 1.578 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004597/0.347, allocations: 393.9 kB / 424.6 MB, free: 1.188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001164/0.3471, allocations: 53.7 kB / 424.7 MB, free: 1.129 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002076/0.3473, allocations: 268.9 kB / 425 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002959/0.3476, allocations: 366.9 kB / 425.3 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003188/0.3479, allocations: 178.8 kB / 425.5 MB, free: 320 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.3481, allocations: 378.8 kB / 425.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009966/0.3491, allocations: 442.4 kB / 426.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.3502, allocations: 0.5344 MB / 426.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001727/0.3519, allocations: 0.7792 MB / 427.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.352, allocations: 4 kB / 427.6 MB, free: 14.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003147/0.3551, allocations: 1.35 MB / 429 MB, free: 12.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.3551, allocations: 4 kB / 429 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.3552, allocations: 0 / 429 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.3563, allocations: 0.6505 MB / 429.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007736/0.3571, allocations: 199.7 kB / 429.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004276/0.3614, allocations: 3.434 MB / 433.2 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/0.3627, allocations: 183.9 kB / 433.4 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001273/0.3629, allocations: 35.98 kB / 433.5 MB, free: 8.086 MB / 350.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.0004614/0.3633, allocations: 221.6 kB / 433.7 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001867/0.3635, allocations: 71.16 kB / 433.7 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002394/0.3638, allocations: 107 kB / 433.8 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.3638, allocations: 12 kB / 433.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/0.3638, allocations: 0 / 433.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.3638, allocations: 3.984 kB / 433.9 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004814/0.3686, allocations: 2.502 MB / 436.4 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/0.3687, allocations: 3.984 kB / 436.4 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007805/0.3694, allocations: 175.7 kB / 436.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001023/0.3705, allocations: 0.6192 MB / 437.2 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.794e-05/0.3706, allocations: 39.95 kB / 437.2 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003663/0.3743, allocations: 3.226 MB / 440.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.3743, allocations: 0 / 440.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003887/0.3782, allocations: 1.845 MB / 442.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004509/0.3786, allocations: 236.1 kB / 442.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/0.3788, allocations: 28 kB / 442.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/0.3802, allocations: 207.7 kB / 442.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008901/0.3811, allocations: 376.4 kB / 443.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/0.3812, allocations: 47.95 kB / 443.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003048/0.3816, allocations: 263.2 kB / 443.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3816, allocations: 0 / 443.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000845/0.3824, allocations: 252 kB / 443.6 MB, free: 13.5 MB / 366.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.0003251/0.3827, allocations: 174.7 kB / 443.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002666/0.3854, allocations: 1.196 MB / 445 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.3854, allocations: 0 / 445 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001458/0.3869, allocations: 0.7312 MB / 445.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000893/0.3878, allocations: 135.1 kB / 445.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004025/0.3918, allocations: 1.988 MB / 447.9 MB, free: 9.199 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000549/0.3924, allocations: 0.9322 MB / 448.8 MB, free: 8.242 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002601/0.3927, allocations: 67.42 kB / 448.9 MB, free: 8.176 MB / 366.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3927, allocations: 0 / 448.9 MB, free: 8.176 MB / 366.1 MB Notification: Performance of Templates: time 0.02181/0.4145, allocations: 17.63 MB / 466.5 MB, free: 6.523 MB / 382.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