Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001397/0.001397, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00143/0.00143, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 247.5 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001815, allocations: 65.33 kB / 307.6 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1129, allocations: 50.53 MB / 358.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006587/0.1195, allocations: 4.462 MB / 362.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003489/0.1231, allocations: 1.585 MB / 364.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005562/0.1236, allocations: 15.94 kB / 364.2 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000507/0.1242, allocations: 134.7 kB / 364.4 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007566/0.125, allocations: 269.7 kB / 364.6 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.1261, allocations: 430.8 kB / 365.1 MB, free: 7.207 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001365/0.1275, allocations: 1.159 MB / 366.2 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004568/0.1279, allocations: 265.7 kB / 366.5 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008277/0.1288, allocations: 498.5 kB / 367 MB, free: 5.285 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007629/0.1296, allocations: 0.537 MB / 367.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002093/0.1298, allocations: 96 kB / 367.6 MB, free: 4.652 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004183/0.1302, allocations: 160 kB / 367.7 MB, free: 4.496 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003041/0.1305, allocations: 239.3 kB / 368 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005382/0.1311, allocations: 473.8 kB / 368.4 MB, free: 3.797 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001334/0.1324, allocations: 1.11 MB / 369.6 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1324, allocations: 0 / 369.6 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1324, allocations: 0 / 369.6 MB, free: 2.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.1325, allocations: 0 / 369.6 MB, free: 2.684 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003469/0.1359, allocations: 1.326 MB / 370.9 MB, free: 1.309 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.136, allocations: 8.031 kB / 370.9 MB, free: 1.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005414/0.1365, allocations: 115.9 kB / 371 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007053/0.1372, allocations: 457.5 kB / 371.4 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.099e-05/0.1373, allocations: 58.38 kB / 371.5 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001476/0.1375, allocations: 76.11 kB / 371.6 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1852/0.3227, allocations: 0.7904 MB / 372.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.32e-05/0.3228, allocations: 19.5 kB / 372.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.385e-05/0.3229, allocations: 26.59 kB / 372.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.3229, allocations: 16.41 kB / 372.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002183/0.3251, allocations: 0.8422 MB / 373.3 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004671/0.3298, allocations: 2.423 MB / 375.7 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/0.3313, allocations: 0.7318 MB / 376.4 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008949/0.3322, allocations: 453.9 kB / 376.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.64e-05/0.3323, allocations: 11.78 kB / 376.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001205/0.3335, allocations: 0.5355 MB / 377.4 MB, free: 18.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.906e-06/0.3336, allocations: 1.406 kB / 377.4 MB, free: 18.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.01101/0.3446, allocations: 4.168 MB / 381.6 MB, free: 16.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.3447, allocations: 64.22 kB / 381.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000528/0.3452, allocations: 417.7 kB / 382.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.179e-05/0.3453, allocations: 57.55 kB / 382.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.3455, allocations: 274.3 kB / 382.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002362/0.3457, allocations: 380.5 kB / 382.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003132/0.346, allocations: 190.1 kB / 382.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.3461, allocations: 375.1 kB / 383.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009234/0.3471, allocations: 413.2 kB / 383.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009959/0.3481, allocations: 0.5105 MB / 384.2 MB, free: 14.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.3496, allocations: 0.7459 MB / 385 MB, free: 14.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.3496, allocations: 1.25 kB / 385 MB, free: 14.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002992/0.3526, allocations: 1.296 MB / 386.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.3527, allocations: 5.375 kB / 386.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.3527, allocations: 1.438 kB / 386.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/0.3537, allocations: 0.538 MB / 386.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007866/0.3545, allocations: 202.3 kB / 387 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003533/0.3581, allocations: 3.406 MB / 390.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/0.3593, allocations: 176.5 kB / 390.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.523e-05/0.3594, allocations: 38.97 kB / 390.6 MB, free: 10.31 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,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004206/0.3599, allocations: 222.1 kB / 390.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.36, allocations: 75.88 kB / 390.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002019/0.3602, allocations: 106.7 kB / 391 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.3602, allocations: 11.88 kB / 391 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/0.3603, allocations: 0 / 391 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.3603, allocations: 6 kB / 391 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004115/0.3644, allocations: 2.511 MB / 393.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.3644, allocations: 1.375 kB / 393.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007411/0.3652, allocations: 178 kB / 393.7 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000883/0.3661, allocations: 0.5054 MB / 394.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.153e-05/0.3662, allocations: 40.11 kB / 394.3 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003036/0.3692, allocations: 3.177 MB / 397.4 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3692, allocations: 2.719 kB / 397.4 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003377/0.3726, allocations: 1.768 MB / 399.2 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003523/0.373, allocations: 235.7 kB / 399.4 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001409/0.3731, allocations: 30.38 kB / 399.5 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/0.3744, allocations: 203.4 kB / 399.7 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007563/0.3752, allocations: 383.2 kB / 400 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-05/0.3752, allocations: 43.8 kB / 400.1 MB, free: 3.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002671/0.3755, allocations: 288.7 kB / 400.4 MB, free: 3.391 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3755, allocations: 4 kB / 400.4 MB, free: 3.387 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007742/0.3763, allocations: 240.5 kB / 400.6 MB, free: 3.355 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 (90): * Single equations (assignments): 87 * 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,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0013/0.3776, allocations: 428.5 kB / 401 MB, free: 3.129 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002836/0.3805, allocations: 1.193 MB / 402.2 MB, free: 2.375 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.3805, allocations: 0 / 402.2 MB, free: 2.375 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001205/0.3817, allocations: 0.731 MB / 402.9 MB, free: 1.633 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008972/0.3826, allocations: 150.4 kB / 403.1 MB, free: 1.488 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003783/0.3864, allocations: 2.041 MB / 405.1 MB, free: 15.41 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006667/0.3871, allocations: 0.9478 MB / 406.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002905/0.3874, allocations: 75.41 kB / 406.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3874, allocations: 0 / 406.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of Templates: time 0.02516/0.4126, allocations: 18.26 MB / 424.4 MB, free: 12.07 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches