Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001806/0.001806, allocations: 172.5 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.767/1.767, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008323/0.0008323, allocations: 82.67 kB / 268 MB, free: 14.06 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.33e-05/2.332e-05, allocations: 0 / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09516/0.0952, allocations: 47.58 MB / 370 MB, free: 1.715 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3272/0.4224, allocations: 83.41 MB / 453.4 MB, free: 9.906 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.4228, allocations: 67.56 kB / 453.5 MB, free: 9.875 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04548/0.4683, allocations: 14.9 MB / 468.4 MB, free: 12.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4683, allocations: 0 / 468.4 MB, free: 12.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.905e-05/0.4684, allocations: 16 kB / 468.4 MB, free: 12.42 MB / 346.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.002547/0.4709, allocations: 1.073 MB / 469.5 MB, free: 11.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.471, allocations: 8.031 kB / 469.5 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002539/0.4712, allocations: 91 kB / 469.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006119/0.4718, allocations: 411.1 kB / 470 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.925e-05/0.4719, allocations: 50 kB / 470 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.4721, allocations: 75.89 kB / 470.1 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.4735, allocations: 0.718 MB / 470.8 MB, free: 9.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.225e-05/0.4735, allocations: 7.844 kB / 470.8 MB, free: 9.902 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001143/0.4736, allocations: 39.98 kB / 470.9 MB, free: 9.863 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/0.4737, allocations: 16 kB / 470.9 MB, free: 9.848 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.475, allocations: 0.7145 MB / 471.6 MB, free: 9.137 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004482/0.4795, allocations: 2.439 MB / 474.1 MB, free: 6.57 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.4805, allocations: 0.6247 MB / 474.7 MB, free: 5.926 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006653/0.4812, allocations: 403.8 kB / 475.1 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001047/0.4813, allocations: 24.69 kB / 475.1 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009163/0.4823, allocations: 494 kB / 475.6 MB, free: 5.012 MB / 346.7 MB Notification: Performance of pre-optimization done (n=89): time 3.266e-06/0.4823, allocations: 0 / 475.6 MB, free: 5.012 MB / 346.7 MB Notification: Performance of matching and sorting (n=109): time 0.006572/0.4889, allocations: 2.948 MB / 478.5 MB, free: 1.984 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.567e-05/0.489, allocations: 64.41 kB / 478.6 MB, free: 1.91 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005495/0.4896, allocations: 311.1 kB / 478.9 MB, free: 1.602 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000125/0.4897, allocations: 61.69 kB / 479 MB, free: 1.535 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002953/0.49, allocations: 261.1 kB / 479.2 MB, free: 1.273 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003908/0.4904, allocations: 370.8 kB / 479.6 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.174e-05/0.4905, allocations: 23.94 kB / 479.6 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002614/0.4907, allocations: 374.8 kB / 480 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006376/0.4914, allocations: 358.6 kB / 480.3 MB, free: 160 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007004/0.4921, allocations: 455.5 kB / 480.8 MB, free: 15.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006364/0.4927, allocations: 305 kB / 481.1 MB, free: 15.4 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4928, allocations: 0 / 481.1 MB, free: 15.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002696/0.4955, allocations: 1.178 MB / 482.2 MB, free: 14.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/0.4955, allocations: 8 kB / 482.2 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/0.4955, allocations: 0 / 482.2 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.4966, allocations: 0.5412 MB / 482.8 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008101/0.4974, allocations: 203.7 kB / 483 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003996/0.5014, allocations: 3.226 MB / 486.2 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001414/0.5029, allocations: 239.9 kB / 486.4 MB, free: 9.797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.503, allocations: 43.94 kB / 486.5 MB, free: 9.754 MB / 362.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 () * 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.000301/0.5033, allocations: 163.9 kB / 486.6 MB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.5034, allocations: 75.14 kB / 486.7 MB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002442/0.5059, allocations: 1.193 MB / 487.9 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.5059, allocations: 12 kB / 487.9 MB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.5059, allocations: 0 / 487.9 MB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.5059, allocations: 3.984 kB / 487.9 MB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004002/0.5099, allocations: 2.357 MB / 490.3 MB, free: 5.809 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.51, allocations: 0 / 490.3 MB, free: 5.809 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008084/0.5108, allocations: 192 kB / 490.5 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009376/0.5117, allocations: 0.5256 MB / 491 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.243e-05/0.5118, allocations: 35.95 kB / 491 MB, free: 5.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003558/0.5154, allocations: 3.046 MB / 494.1 MB, free: 1.824 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.5154, allocations: 8.219 kB / 494.1 MB, free: 1.816 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002878/0.5183, allocations: 1.716 MB / 495.8 MB, free: 4 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000419/0.5188, allocations: 232.1 kB / 496 MB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/0.5189, allocations: 32 kB / 496.1 MB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/0.5202, allocations: 247.8 kB / 496.3 MB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009338/0.5211, allocations: 436.1 kB / 496.7 MB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.5212, allocations: 51.95 kB / 496.8 MB, free: 15.01 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002836/0.5215, allocations: 245.2 kB / 497 MB, free: 14.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5215, allocations: 0 / 497 MB, free: 14.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008214/0.5223, allocations: 251.9 kB / 497.3 MB, free: 14.52 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) * 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.000312/0.5227, allocations: 176.6 kB / 497.4 MB, free: 14.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001898/0.5246, allocations: 1.09 MB / 498.5 MB, free: 13.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5246, allocations: 4 kB / 498.5 MB, free: 13.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001289/0.5259, allocations: 0.7156 MB / 499.2 MB, free: 12.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000654/0.5266, allocations: 109.5 kB / 499.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003891/0.5305, allocations: 1.774 MB / 0.4894 GB, free: 10.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005254/0.531, allocations: 0.9476 MB / 0.4903 GB, free: 9.594 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003588/0.5314, allocations: 73.36 kB / 0.4904 GB, free: 9.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001878/0.5316, allocations: 59.42 kB / 0.4904 GB, free: 9.461 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.5316, allocations: 3.938 kB / 0.4904 GB, free: 9.457 MB / 378.7 MB Notification: Performance of Templates: time 0.02424/0.5558, allocations: 14.94 MB / 0.505 GB, free: 10.49 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches