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.001391/0.001391, allocations: 110.6 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002147/0.002147, allocations: 213.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.682/1.682, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002228/0.002228, allocations: 55.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2955, allocations: 50.54 MB / 409.9 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00649/0.302, allocations: 4.473 MB / 414.4 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003297/0.3054, allocations: 1.566 MB / 416 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005724/0.306, allocations: 15.94 kB / 416 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005791/0.3066, allocations: 134.7 kB / 416.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009479/0.3076, allocations: 273.8 kB / 416.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001213/0.3088, allocations: 430.7 kB / 416.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001665/0.3105, allocations: 1.17 MB / 418 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004936/0.311, allocations: 261.7 kB / 418.2 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009732/0.312, allocations: 0.4985 MB / 418.7 MB, free: 8.781 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009277/0.3129, allocations: 0.5293 MB / 419.3 MB, free: 8.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003018/0.3132, allocations: 92 kB / 419.3 MB, free: 8.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005247/0.3137, allocations: 168 kB / 419.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003374/0.3141, allocations: 243.2 kB / 419.7 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006612/0.3148, allocations: 465.8 kB / 420.2 MB, free: 7.301 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001412/0.3162, allocations: 1.115 MB / 421.3 MB, free: 6.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.3162, allocations: 8 kB / 421.3 MB, free: 6.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3162, allocations: 0 / 421.3 MB, free: 6.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.285e-05/0.3162, allocations: 3.938 kB / 421.3 MB, free: 6.176 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.003457/0.3197, allocations: 1.325 MB / 422.6 MB, free: 4.797 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3198, allocations: 8.031 kB / 422.7 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005248/0.3203, allocations: 115.9 kB / 422.8 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007917/0.3211, allocations: 469.5 kB / 423.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.456e-05/0.3212, allocations: 62.38 kB / 423.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001523/0.3213, allocations: 76.03 kB / 423.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.323, allocations: 0.7959 MB / 424.2 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.995e-05/0.3231, allocations: 7.906 kB / 424.2 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.173e-05/0.3232, allocations: 32 kB / 424.2 MB, free: 3.203 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.3232, allocations: 16 kB / 424.2 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001989/0.3252, allocations: 0.8432 MB / 425.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004562/0.3298, allocations: 2.4 MB / 427.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.3313, allocations: 0.7282 MB / 428.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009379/0.3323, allocations: 460.3 kB / 428.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.531e-05/0.3324, allocations: 9 kB / 428.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001211/0.3336, allocations: 0.5399 MB / 429.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.855e-06/0.3336, allocations: 3.938 kB / 429.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01159/0.3452, allocations: 4.169 MB / 433.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.3453, allocations: 64.41 kB / 433.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005327/0.3458, allocations: 421.8 kB / 433.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.343e-05/0.3459, allocations: 53.7 kB / 433.9 MB, free: 9.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002126/0.3462, allocations: 288.9 kB / 434.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003209/0.3465, allocations: 374.7 kB / 434.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003342/0.3468, allocations: 190.8 kB / 434.7 MB, free: 8.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.347, allocations: 374.8 kB / 435.1 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009957/0.348, allocations: 418.4 kB / 435.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.3491, allocations: 0.5033 MB / 436 MB, free: 7.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001714/0.3508, allocations: 0.7479 MB / 436.7 MB, free: 6.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3508, allocations: 0 / 436.7 MB, free: 6.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003052/0.3539, allocations: 1.291 MB / 438 MB, free: 4.961 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.3539, allocations: 4 kB / 438 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.3539, allocations: 4 kB / 438 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/0.355, allocations: 0.5372 MB / 438.6 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007707/0.3558, allocations: 199.7 kB / 438.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004385/0.3602, allocations: 3.395 MB / 442.2 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.3615, allocations: 175.9 kB / 442.3 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.961e-05/0.3615, allocations: 39.98 kB / 442.4 MB, free: 424 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.0003988/0.362, allocations: 229.7 kB / 442.6 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/0.3621, allocations: 83 kB / 442.7 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002163/0.3623, allocations: 107.5 kB / 442.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.3623, allocations: 8 kB / 442.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-06/0.3624, allocations: 3.938 kB / 442.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.3624, allocations: 7.984 kB / 442.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004852/0.3672, allocations: 2.472 MB / 445.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.3673, allocations: 3.938 kB / 445.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007788/0.3681, allocations: 171.8 kB / 445.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009828/0.3691, allocations: 0.506 MB / 446 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.3692, allocations: 31.97 kB / 446 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003704/0.3729, allocations: 3.175 MB / 449.2 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.3729, allocations: 4.031 kB / 449.2 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003721/0.3766, allocations: 1.776 MB / 450.9 MB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004512/0.3771, allocations: 240.1 kB / 451.2 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.3773, allocations: 32 kB / 451.2 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001341/0.3786, allocations: 203.7 kB / 451.4 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009154/0.3795, allocations: 384.3 kB / 451.8 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.873e-05/0.3796, allocations: 43.97 kB / 451.8 MB, free: 6.582 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003384/0.38, allocations: 283.1 kB / 452.1 MB, free: 6.301 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.38, allocations: 0 / 452.1 MB, free: 6.301 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008136/0.3808, allocations: 252 kB / 452.4 MB, free: 6.055 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.0009642/0.3818, allocations: 410.3 kB / 452.8 MB, free: 5.766 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002535/0.3843, allocations: 1.157 MB / 453.9 MB, free: 4.598 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3844, allocations: 0 / 453.9 MB, free: 4.598 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001442/0.3858, allocations: 0.7234 MB / 454.6 MB, free: 3.863 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009261/0.3867, allocations: 145.8 kB / 454.8 MB, free: 3.723 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004165/0.3909, allocations: 2.035 MB / 456.8 MB, free: 1.633 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005256/0.3915, allocations: 0.9519 MB / 457.8 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002925/0.3918, allocations: 71.41 kB / 457.8 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3918, allocations: 0 / 457.8 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of Templates: time 0.02374/0.4155, allocations: 18.43 MB / 476.3 MB, free: 14.14 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