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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001385/0.001385, allocations: 201.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 226.5 MB / 245.4 MB, free: 6.539 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007873/0.0007873, allocations: 106.4 kB / 297.5 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002393/0.0002394, allocations: 11.98 kB / 358.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2247, allocations: 51.29 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1254/0.3501, allocations: 87.57 MB / 496.9 MB, free: 3.949 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001793/0.3503, allocations: 71.97 kB / 497 MB, free: 3.879 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04948/0.3998, allocations: 17.49 MB / 0.5024 GB, free: 2.324 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.3999, allocations: 0 / 0.5024 GB, free: 2.324 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.268e-05/0.3999, allocations: 16 kB / 0.5025 GB, free: 2.309 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.002699/0.4026, allocations: 1.158 MB / 0.5036 GB, free: 1.094 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.4027, allocations: 8.031 kB / 0.5036 GB, free: 1.086 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004604/0.4031, allocations: 123.9 kB / 0.5037 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006294/0.4038, allocations: 445.6 kB / 0.5041 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.915e-05/0.4038, allocations: 54.38 kB / 0.5042 GB, free: 452 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.404, allocations: 76.28 kB / 0.5043 GB, free: 376 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1619/0.5659, allocations: 0.8013 MB / 0.505 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.953e-05/0.566, allocations: 8.453 kB / 0.5051 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.99e-05/0.5661, allocations: 27.88 kB / 0.5051 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.185e-05/0.5661, allocations: 19.94 kB / 0.5051 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002126/0.5682, allocations: 0.8719 MB / 0.5059 GB, free: 90.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004173/0.5724, allocations: 2.492 MB / 0.5084 GB, free: 89.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/0.5739, allocations: 0.7382 MB / 0.5091 GB, free: 89.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009495/0.5748, allocations: 471.2 kB / 0.5096 GB, free: 89.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.7e-05/0.5749, allocations: 14.8 kB / 0.5096 GB, free: 89.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001147/0.5761, allocations: 0.5478 MB / 0.5101 GB, free: 89.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=89): time 3.897e-06/0.5761, allocations: 3.594 kB / 0.5101 GB, free: 89.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=109): time 0.009573/0.5857, allocations: 4.359 MB / 0.5144 GB, free: 87.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.027e-05/0.5858, allocations: 63.78 kB / 0.5144 GB, free: 87.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003655/0.5861, allocations: 407.1 kB / 0.5148 GB, free: 87.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.775e-05/0.5862, allocations: 57.42 kB / 0.5149 GB, free: 87.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.5864, allocations: 273.6 kB / 0.5151 GB, free: 87.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001936/0.5866, allocations: 367.3 kB / 0.5155 GB, free: 87.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.244e-05/0.5866, allocations: 27.64 kB / 0.5155 GB, free: 87.03 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.921e-05/0.5867, allocations: 368.5 kB / 0.5159 GB, free: 86.69 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008276/0.5875, allocations: 430 kB / 0.5163 GB, free: 86.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009192/0.5885, allocations: 0.5264 MB / 0.5168 GB, free: 86.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.5899, allocations: 0.7668 MB / 0.5175 GB, free: 85.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.5899, allocations: 0 / 0.5175 GB, free: 85.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002562/0.5925, allocations: 1.315 MB / 0.5188 GB, free: 85.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.5925, allocations: 7.438 kB / 0.5188 GB, free: 85.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.5925, allocations: 0 / 0.5188 GB, free: 85.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008238/0.5933, allocations: 0.4973 MB / 0.5193 GB, free: 85.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000733/0.5941, allocations: 201.8 kB / 0.5195 GB, free: 85.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002996/0.5971, allocations: 3.267 MB / 0.5227 GB, free: 82.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.5982, allocations: 234.1 kB / 0.5229 GB, free: 82.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.408e-05/0.5983, allocations: 37.94 kB / 0.5229 GB, free: 82.5 MB / 378.7 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,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 9,1 5,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003215/0.5986, allocations: 232.3 kB / 0.5232 GB, free: 82.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.5987, allocations: 73.78 kB / 0.5232 GB, free: 82.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001716/0.5989, allocations: 105.7 kB / 0.5233 GB, free: 82.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.5989, allocations: 14.06 kB / 0.5234 GB, free: 82.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.5989, allocations: 3.781 kB / 0.5234 GB, free: 82.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.5989, allocations: 4.859 kB / 0.5234 GB, free: 82.19 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003701/0.6026, allocations: 2.529 MB / 0.5258 GB, free: 80.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.6026, allocations: 0 / 0.5258 GB, free: 80.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007252/0.6034, allocations: 186.1 kB / 0.526 GB, free: 80.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007546/0.6041, allocations: 469.8 kB / 0.5265 GB, free: 80.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.925e-05/0.6042, allocations: 36.12 kB / 0.5265 GB, free: 80.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002489/0.6067, allocations: 3.084 MB / 0.5295 GB, free: 78.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.6067, allocations: 0 / 0.5295 GB, free: 78.08 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003154/0.6099, allocations: 1.853 MB / 0.5313 GB, free: 76.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/0.6102, allocations: 236.2 kB / 0.5315 GB, free: 76.37 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.6103, allocations: 38.89 kB / 0.5316 GB, free: 76.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.6114, allocations: 252.6 kB / 0.5318 GB, free: 76.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007742/0.6122, allocations: 432.8 kB / 0.5322 GB, free: 75.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.104e-05/0.6123, allocations: 42.84 kB / 0.5323 GB, free: 75.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002268/0.6125, allocations: 272.1 kB / 0.5325 GB, free: 75.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6125, allocations: 0 / 0.5325 GB, free: 75.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006715/0.6132, allocations: 251.9 kB / 0.5328 GB, free: 75.43 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 8,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000768/0.614, allocations: 423.8 kB / 0.5332 GB, free: 75.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002009/0.616, allocations: 1.179 MB / 0.5343 GB, free: 74.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.616, allocations: 0 / 0.5343 GB, free: 74.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001256/0.6173, allocations: 0.7712 MB / 0.5351 GB, free: 73.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008281/0.6181, allocations: 139.9 kB / 0.5352 GB, free: 73.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003429/0.6215, allocations: 2.474 MB / 0.5376 GB, free: 71.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.6218, allocations: 0.9416 MB / 0.5385 GB, free: 70.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003481/0.6222, allocations: 90.64 kB / 0.5386 GB, free: 70.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000173/0.6224, allocations: 69.2 kB / 0.5387 GB, free: 70.06 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.6224, allocations: 0 / 0.5387 GB, free: 70.06 MB / 378.7 MB Notification: Performance of Templates: time 0.01765/0.64, allocations: 15.22 MB / 0.5536 GB, free: 55.61 MB / 378.7 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","../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches