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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009555/0.0009551, allocations: 176.2 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 223.3 MB / 241.4 MB, free: 11.74 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008118/0.0008117, allocations: 97.03 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003407/0.0003411, allocations: 8 kB / 352.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2252, allocations: 50.41 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09825/0.3235, allocations: 85.69 MB / 488.4 MB, free: 10.65 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001972/0.3238, allocations: 78.7 kB / 488.5 MB, free: 10.58 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04266/0.3664, allocations: 15.12 MB / 0.4918 GB, free: 11.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3665, allocations: 0 / 0.4918 GB, free: 11.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.31e-05/0.3665, allocations: 16 kB / 0.4918 GB, free: 11.36 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.002657/0.3692, allocations: 1.127 MB / 0.4929 GB, free: 10.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.3692, allocations: 8.031 kB / 0.493 GB, free: 10.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002866/0.3695, allocations: 91.91 kB / 0.493 GB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006187/0.3701, allocations: 429.6 kB / 0.4934 GB, free: 9.617 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.534e-05/0.3702, allocations: 50.38 kB / 0.4935 GB, free: 9.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/0.3704, allocations: 68.38 kB / 0.4936 GB, free: 9.504 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.372, allocations: 0.7964 MB / 0.4943 GB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.845e-05/0.3721, allocations: 20.03 kB / 0.4944 GB, free: 8.684 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.301e-05/0.3721, allocations: 31.94 kB / 0.4944 GB, free: 8.652 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/0.3722, allocations: 16 kB / 0.4944 GB, free: 8.637 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001895/0.3741, allocations: 0.851 MB / 0.4952 GB, free: 7.781 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004433/0.3785, allocations: 2.439 MB / 0.4976 GB, free: 5.219 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/0.3799, allocations: 0.7072 MB / 0.4983 GB, free: 4.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009308/0.3809, allocations: 480.2 kB / 0.4988 GB, free: 4.031 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.026e-05/0.3809, allocations: 20.92 kB / 0.4988 GB, free: 4.012 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001107/0.3821, allocations: 0.5634 MB / 0.4993 GB, free: 3.438 MB / 378.7 MB Notification: Performance of pre-optimization done (n=89): time 2.956e-06/0.3821, allocations: 0 / 0.4993 GB, free: 3.438 MB / 378.7 MB Notification: Performance of matching and sorting (n=109): time 0.1913/0.5733, allocations: 4.416 MB / 0.5037 GB, free: 95.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.5734, allocations: 64.89 kB / 0.5037 GB, free: 95.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000437/0.5739, allocations: 364.4 kB / 0.5041 GB, free: 95.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.315e-05/0.574, allocations: 56.62 kB / 0.5041 GB, free: 95.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.5741, allocations: 265.4 kB / 0.5044 GB, free: 95.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002584/0.5744, allocations: 371.2 kB / 0.5047 GB, free: 95.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.744e-05/0.5745, allocations: 20.19 kB / 0.5047 GB, free: 95.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.903e-05/0.5746, allocations: 372.5 kB / 0.5051 GB, free: 94.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009449/0.5755, allocations: 432.1 kB / 0.5055 GB, free: 94.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.5765, allocations: 0.5144 MB / 0.506 GB, free: 94.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001712/0.5783, allocations: 0.7734 MB / 0.5068 GB, free: 94.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.5783, allocations: 0 / 0.5068 GB, free: 94.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.00311/0.5814, allocations: 1.316 MB / 0.508 GB, free: 94.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.5814, allocations: 9.594 kB / 0.5081 GB, free: 94.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/0.5815, allocations: 6.766 kB / 0.5081 GB, free: 94.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008841/0.5823, allocations: 0.559 MB / 0.5086 GB, free: 94.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006918/0.5831, allocations: 208.7 kB / 0.5088 GB, free: 94.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003011/0.5861, allocations: 3.219 MB / 0.512 GB, free: 91.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/0.5873, allocations: 240.6 kB / 0.5122 GB, free: 91.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.5874, allocations: 43.09 kB / 0.5122 GB, free: 91.8 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 (115): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004661/0.5879, allocations: 228.6 kB / 0.5124 GB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.588, allocations: 71.28 kB / 0.5125 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002549/0.5906, allocations: 1.333 MB / 0.5138 GB, free: 91.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.5906, allocations: 11.88 kB / 0.5138 GB, free: 91.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.5906, allocations: 0 / 0.5138 GB, free: 91.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.5906, allocations: 3.422 kB / 0.5138 GB, free: 91.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004106/0.5947, allocations: 2.502 MB / 0.5163 GB, free: 89.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.251e-06/0.5948, allocations: 0 / 0.5163 GB, free: 89.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007404/0.5955, allocations: 187.9 kB / 0.5164 GB, free: 89.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008887/0.5964, allocations: 0.5316 MB / 0.517 GB, free: 89.69 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.7e-05/0.5965, allocations: 33.61 kB / 0.517 GB, free: 89.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00269/0.5992, allocations: 3.061 MB / 0.52 GB, free: 87.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.5992, allocations: 7.688 kB / 0.52 GB, free: 87.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003341/0.6026, allocations: 1.821 MB / 0.5218 GB, free: 86.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003675/0.603, allocations: 232.7 kB / 0.522 GB, free: 86.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/0.6031, allocations: 34.36 kB / 0.522 GB, free: 86.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.6042, allocations: 251.2 kB / 0.5223 GB, free: 85.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007641/0.605, allocations: 437.2 kB / 0.5227 GB, free: 85.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.219e-05/0.6051, allocations: 51.08 kB / 0.5227 GB, free: 85.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002143/0.6053, allocations: 247.5 kB / 0.523 GB, free: 85.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6053, allocations: 6.25 kB / 0.523 GB, free: 85.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007486/0.6061, allocations: 255.5 kB / 0.5232 GB, free: 85.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002376/0.6063, allocations: 160.2 kB / 0.5234 GB, free: 85.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002137/0.6085, allocations: 1.223 MB / 0.5246 GB, free: 85.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.6085, allocations: 0 / 0.5246 GB, free: 85.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001334/0.6098, allocations: 0.8014 MB / 0.5254 GB, free: 84.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008561/0.6107, allocations: 119.4 kB / 0.5255 GB, free: 84.65 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003361/0.6141, allocations: 2.409 MB / 0.5278 GB, free: 82.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.6144, allocations: 0.9386 MB / 0.5287 GB, free: 81.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003423/0.6147, allocations: 76 kB / 0.5288 GB, free: 81.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.6149, allocations: 54.75 kB / 0.5289 GB, free: 81.5 MB / 378.7 MB Notification: Performance of SimCode: time 3.7e-07/0.6149, allocations: 0 / 0.5289 GB, free: 81.5 MB / 378.7 MB Notification: Performance of Templates: time 0.01829/0.6332, allocations: 15.04 MB / 0.5435 GB, free: 68.08 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches