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.001439/0.001439, allocations: 115.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001718/0.001718, allocations: 217.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 63.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.287, allocations: 50.54 MB / 409.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.007112/0.2942, allocations: 4.462 MB / 414.4 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003369/0.2976, allocations: 1.562 MB / 416 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004936/0.2982, allocations: 11.94 kB / 416 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004781/0.2987, allocations: 134.7 kB / 416.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006869/0.2994, allocations: 285.7 kB / 416.4 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.3004, allocations: 419.2 kB / 416.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001209/0.3017, allocations: 1.166 MB / 418 MB, free: 9.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004513/0.3021, allocations: 273.7 kB / 418.2 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007399/0.3029, allocations: 0.4985 MB / 418.7 MB, free: 8.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000623/0.3035, allocations: 0.5293 MB / 419.2 MB, free: 8.207 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001673/0.3037, allocations: 92 kB / 419.3 MB, free: 8.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000372/0.3041, allocations: 175.9 kB / 419.5 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002508/0.3043, allocations: 235.3 kB / 419.7 MB, free: 7.715 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004195/0.3047, allocations: 465.8 kB / 420.2 MB, free: 7.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001236/0.306, allocations: 1.122 MB / 421.3 MB, free: 6.137 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.306, allocations: 0 / 421.3 MB, free: 6.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.306, allocations: 4 kB / 421.3 MB, free: 6.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.432e-05/0.306, allocations: 3.938 kB / 421.3 MB, free: 6.129 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.00341/0.3095, allocations: 1.322 MB / 422.6 MB, free: 4.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.3095, allocations: 8.031 kB / 422.7 MB, free: 4.746 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005571/0.3101, allocations: 119.9 kB / 422.8 MB, free: 4.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006872/0.3108, allocations: 469.5 kB / 423.2 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.239e-05/0.3108, allocations: 58.38 kB / 423.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.311, allocations: 76.03 kB / 423.4 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.3127, allocations: 0.7998 MB / 424.2 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.072e-05/0.3127, allocations: 7.906 kB / 424.2 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.693e-05/0.3128, allocations: 28 kB / 424.2 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.3128, allocations: 16 kB / 424.2 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001987/0.3148, allocations: 0.8432 MB / 425.1 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004485/0.3193, allocations: 2.4 MB / 427.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.3208, allocations: 0.7243 MB / 428.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009053/0.3218, allocations: 459.8 kB / 428.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.301e-05/0.3219, allocations: 16.98 kB / 428.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001152/0.323, allocations: 0.5398 MB / 429.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.556e-06/0.323, allocations: 4 kB / 429.2 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01136/0.3344, allocations: 4.165 MB / 433.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/0.3345, allocations: 64.41 kB / 433.4 MB, free: 9.633 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005428/0.335, allocations: 417.9 kB / 433.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001095/0.3352, allocations: 57.69 kB / 433.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002141/0.3354, allocations: 285 kB / 434.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003075/0.3357, allocations: 370.8 kB / 434.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003171/0.336, allocations: 186.8 kB / 434.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.3362, allocations: 382.8 kB / 435.1 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009205/0.3371, allocations: 414.4 kB / 435.5 MB, free: 7.527 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.3382, allocations: 0.5033 MB / 436 MB, free: 7.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001645/0.3398, allocations: 0.7479 MB / 436.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3398, allocations: 0 / 436.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003086/0.3429, allocations: 1.303 MB / 438 MB, free: 4.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.343, allocations: 4 kB / 438 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.343, allocations: 4 kB / 438 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/0.3441, allocations: 0.5411 MB / 438.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007692/0.3448, allocations: 203.6 kB / 438.8 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004397/0.3492, allocations: 3.39 MB / 442.2 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001324/0.3506, allocations: 175.9 kB / 442.3 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.413e-05/0.3507, allocations: 35.98 kB / 442.4 MB, free: 384 kB / 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,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004587/0.3512, allocations: 233.2 kB / 442.6 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.3513, allocations: 83 kB / 442.7 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002705/0.3516, allocations: 103.3 kB / 442.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.3516, allocations: 11.98 kB / 442.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/0.3516, allocations: 0 / 442.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.3517, allocations: 7.984 kB / 442.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004583/0.3563, allocations: 2.484 MB / 445.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.3563, allocations: 4 kB / 445.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007519/0.3571, allocations: 168 kB / 445.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009578/0.358, allocations: 0.5059 MB / 446 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-05/0.3581, allocations: 35.97 kB / 446 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003747/0.3619, allocations: 3.184 MB / 449.2 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3619, allocations: 3.938 kB / 449.2 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003756/0.3657, allocations: 1.768 MB / 451 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004509/0.3661, allocations: 236.1 kB / 451.2 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.3663, allocations: 32 kB / 451.2 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001343/0.3676, allocations: 199.7 kB / 451.4 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008776/0.3685, allocations: 384.3 kB / 451.8 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.435e-05/0.3686, allocations: 47.95 kB / 451.8 MB, free: 6.539 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003655/0.369, allocations: 283.1 kB / 452.1 MB, free: 6.258 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.369, allocations: 0 / 452.1 MB, free: 6.258 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008209/0.3698, allocations: 248 kB / 452.4 MB, free: 6.016 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 (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.000982/0.3708, allocations: 404 kB / 452.7 MB, free: 5.723 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002554/0.3734, allocations: 1.161 MB / 453.9 MB, free: 4.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.3734, allocations: 0 / 453.9 MB, free: 4.551 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001454/0.3749, allocations: 0.7234 MB / 454.6 MB, free: 3.816 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009609/0.3758, allocations: 151.1 kB / 454.8 MB, free: 3.676 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004027/0.3799, allocations: 2.036 MB / 456.8 MB, free: 1.582 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004934/0.3804, allocations: 0.9441 MB / 457.8 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002782/0.3807, allocations: 75.41 kB / 457.8 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3807, allocations: 4 kB / 457.8 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of Templates: time 0.02168/0.4024, allocations: 18.34 MB / 476.2 MB, free: 14.18 MB / 398.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.0.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