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.001318/0.001318, allocations: 183 kB / 18.04 MB, free: 3.781 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.463/1.463, allocations: 205.4 MB / 224.2 MB, free: 9.027 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.0007991/0.0007991, allocations: 89.61 kB / 272.5 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003304/0.0003306, allocations: 8 kB / 329.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2311, allocations: 47.57 MB / 377 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0954/0.3266, allocations: 83.59 MB / 460.6 MB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002667/0.3269, allocations: 75.94 kB / 460.7 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04558/0.3725, allocations: 14.92 MB / 475.6 MB, free: 13.9 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3725, allocations: 8 kB / 475.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.703e-05/0.3726, allocations: 12 kB / 475.6 MB, free: 13.88 MB / 362.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.003041/0.3756, allocations: 1.127 MB / 476.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.3757, allocations: 8.031 kB / 476.8 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003128/0.376, allocations: 87.91 kB / 476.8 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006785/0.3767, allocations: 425.7 kB / 477.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.826e-05/0.3768, allocations: 58.38 kB / 477.3 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001567/0.3769, allocations: 72.36 kB / 477.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/0.3787, allocations: 0.7925 MB / 478.2 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.216e-05/0.3787, allocations: 12.08 kB / 478.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-05/0.3788, allocations: 27.94 kB / 478.2 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.887e-05/0.3789, allocations: 19.98 kB / 478.2 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00198/0.3809, allocations: 0.8549 MB / 479.1 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005132/0.386, allocations: 2.439 MB / 481.5 MB, free: 7.742 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001368/0.3874, allocations: 0.6995 MB / 482.2 MB, free: 7.031 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009345/0.3883, allocations: 484.3 kB / 482.7 MB, free: 6.559 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.121e-05/0.3884, allocations: 16.94 kB / 482.7 MB, free: 6.543 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00118/0.3896, allocations: 0.5711 MB / 483.3 MB, free: 5.961 MB / 362.7 MB Notification: Performance of pre-optimization done (n=89): time 3.417e-06/0.3896, allocations: 0 / 483.3 MB, free: 5.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=109): time 0.01113/0.4008, allocations: 4.423 MB / 487.7 MB, free: 1.406 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.4009, allocations: 64.41 kB / 487.8 MB, free: 1.332 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004457/0.4013, allocations: 365.8 kB / 488.1 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001071/0.4014, allocations: 53.7 kB / 488.2 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002595/0.4017, allocations: 257.2 kB / 488.4 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000301/0.402, allocations: 370.8 kB / 488.8 MB, free: 292 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.617e-05/0.4021, allocations: 23.98 kB / 488.8 MB, free: 268 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.4023, allocations: 378.8 kB / 489.2 MB, free: 15.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009819/0.4033, allocations: 418.4 kB / 489.6 MB, free: 15.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.4043, allocations: 0.5227 MB / 490.1 MB, free: 14.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001687/0.406, allocations: 0.7714 MB / 490.9 MB, free: 14.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.406, allocations: 0 / 490.9 MB, free: 14.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003104/0.4091, allocations: 1.319 MB / 492.2 MB, free: 12.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.4092, allocations: 10.17 kB / 492.2 MB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/0.4092, allocations: 4 kB / 492.2 MB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.4103, allocations: 0.5722 MB / 492.8 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007731/0.4111, allocations: 203.7 kB / 493 MB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003855/0.4149, allocations: 3.22 MB / 496.2 MB, free: 8.605 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.4162, allocations: 243.9 kB / 496.5 MB, free: 8.367 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/0.4164, allocations: 43.92 kB / 496.5 MB, free: 8.324 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.0004549/0.4168, allocations: 217.6 kB / 496.7 MB, free: 8.105 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.417, allocations: 67.25 kB / 496.8 MB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003168/0.4202, allocations: 1.337 MB / 498.1 MB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/0.4202, allocations: 20.03 kB / 498.1 MB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.4202, allocations: 0 / 498.1 MB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.4203, allocations: 7.922 kB / 498.1 MB, free: 6.648 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005002/0.4253, allocations: 2.484 MB / 0.4889 GB, free: 4.055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/0.4253, allocations: 4 kB / 0.4889 GB, free: 4.051 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007886/0.4261, allocations: 188 kB / 0.4891 GB, free: 3.867 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001072/0.4272, allocations: 0.5255 MB / 0.4896 GB, free: 3.332 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/0.4273, allocations: 43.89 kB / 0.4896 GB, free: 3.289 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003715/0.431, allocations: 3.054 MB / 0.4926 GB, free: 52 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.4311, allocations: 3.938 kB / 0.4926 GB, free: 48 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1714/0.6025, allocations: 1.826 MB / 0.4944 GB, free: 107.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004473/0.6029, allocations: 227.8 kB / 0.4946 GB, free: 107 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/0.6031, allocations: 31.75 kB / 0.4946 GB, free: 107 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.6043, allocations: 256.9 kB / 0.4949 GB, free: 107 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009823/0.6053, allocations: 435.8 kB / 0.4953 GB, free: 107 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.6055, allocations: 47.44 kB / 0.4954 GB, free: 107 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003337/0.6058, allocations: 256.7 kB / 0.4956 GB, free: 106.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6058, allocations: 0 / 0.4956 GB, free: 106.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001126/0.6069, allocations: 245.5 kB / 0.4958 GB, free: 106.9 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.0002863/0.6072, allocations: 168.8 kB / 0.496 GB, free: 106.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002636/0.6099, allocations: 1.235 MB / 0.4972 GB, free: 106.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.6099, allocations: 0 / 0.4972 GB, free: 106.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001619/0.6115, allocations: 0.7903 MB / 0.498 GB, free: 106.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009316/0.6125, allocations: 124.2 kB / 0.4981 GB, free: 106.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004173/0.6167, allocations: 2.412 MB / 0.5004 GB, free: 105.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.6171, allocations: 0.9403 MB / 0.5014 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000426/0.6175, allocations: 71.78 kB / 0.5014 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002065/0.6177, allocations: 63.36 kB / 0.5015 GB, free: 104.7 MB / 378.7 MB Notification: Performance of SimCode: time 2.214e-06/0.6178, allocations: 1.875 kB / 0.5015 GB, free: 104.7 MB / 378.7 MB Notification: Performance of Templates: time 0.01986/0.6376, allocations: 15.03 MB / 0.5162 GB, free: 99.36 MB / 378.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/jenkins1/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