Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.00151/0.00151, allocations: 188.4 kB / 16.41 MB, free: 5.723 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.92/1.92, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001124/0.001124, allocations: 91.5 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000386/0.0003861, allocations: 8 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3304, allocations: 47.57 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.4648, allocations: 83.52 MB / 458 MB, free: 13.24 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002863/0.4651, allocations: 75.95 kB / 458.1 MB, free: 13.17 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07408/0.5392, allocations: 14.92 MB / 473 MB, free: 14.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.564e-06/0.5393, allocations: 0 / 473 MB, free: 14.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.726e-05/0.5393, allocations: 12 kB / 473.1 MB, free: 14.17 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.004491/0.5438, allocations: 1.135 MB / 474.2 MB, free: 12.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.5439, allocations: 8.031 kB / 474.2 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003879/0.5443, allocations: 90.92 kB / 474.3 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000851/0.5452, allocations: 412.7 kB / 474.7 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.663e-05/0.5453, allocations: 54 kB / 474.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002066/0.5455, allocations: 68 kB / 474.8 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002805/0.5483, allocations: 0.7959 MB / 475.6 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.572e-05/0.5484, allocations: 3.906 kB / 475.6 MB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001364/0.5485, allocations: 28 kB / 475.6 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.481e-05/0.5486, allocations: 19.94 kB / 475.7 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003538/0.5521, allocations: 0.8548 MB / 476.5 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007852/0.56, allocations: 2.443 MB / 479 MB, free: 8.043 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002502/0.5626, allocations: 0.7058 MB / 479.7 MB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001713/0.5628, allocations: 12.98 kB / 479.7 MB, free: 7.316 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002125/0.5649, allocations: 0.5634 MB / 480.2 MB, free: 6.742 MB / 362.7 MB Notification: Performance of pre-optimization done (n=89): time 6.422e-06/0.565, allocations: 0 / 480.2 MB, free: 6.742 MB / 362.7 MB Notification: Performance of matching and sorting (n=109): time 0.02643/0.5914, allocations: 4.419 MB / 484.7 MB, free: 2.195 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.5916, allocations: 64.41 kB / 484.7 MB, free: 2.117 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008544/0.5925, allocations: 317.1 kB / 485 MB, free: 1.805 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004301/0.5929, allocations: 57.69 kB / 485.1 MB, free: 1.742 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003715/0.5933, allocations: 307.5 kB / 485.4 MB, free: 1.438 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008037/0.5941, allocations: 366.8 kB / 485.7 MB, free: 1.074 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00019/0.5944, allocations: 20 kB / 485.8 MB, free: 1.055 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002455/0.5946, allocations: 354.7 kB / 486.1 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002947/0.5976, allocations: 426.4 kB / 486.5 MB, free: 292 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00318/0.6008, allocations: 0.519 MB / 487 MB, free: 15.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002699/0.6036, allocations: 370.4 kB / 487.4 MB, free: 15.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.6037, allocations: 3.938 kB / 487.4 MB, free: 15.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.008869/0.6125, allocations: 1.295 MB / 488.7 MB, free: 14.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.069e-05/0.6126, allocations: 4 kB / 488.7 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.723e-05/0.6127, allocations: 4 kB / 488.7 MB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002898/0.6156, allocations: 0.5606 MB / 489.3 MB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002588/0.6183, allocations: 207.7 kB / 489.5 MB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/0.6284, allocations: 3.233 MB / 492.7 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004031/0.6324, allocations: 240.1 kB / 492.9 MB, free: 9.633 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003439/0.6328, allocations: 39.98 kB / 493 MB, free: 9.594 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.0009452/0.6338, allocations: 229.7 kB / 493.2 MB, free: 9.359 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003661/0.6342, allocations: 67.25 kB / 493.3 MB, free: 9.293 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008127/0.6423, allocations: 1.341 MB / 494.6 MB, free: 7.926 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.463e-05/0.6424, allocations: 8 kB / 494.6 MB, free: 7.918 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.6425, allocations: 4 kB / 494.6 MB, free: 7.914 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.671e-05/0.6425, allocations: 7.969 kB / 494.6 MB, free: 7.906 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009088/0.6516, allocations: 2.485 MB / 497.1 MB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.627e-05/0.6517, allocations: 4 kB / 497.1 MB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001674/0.6534, allocations: 184 kB / 497.3 MB, free: 5.129 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001751/0.6551, allocations: 0.5373 MB / 497.8 MB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002123/0.6554, allocations: 39.95 kB / 497.9 MB, free: 4.543 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005763/0.6612, allocations: 3.073 MB / 0.4892 GB, free: 1.285 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.615e-06/0.6612, allocations: 4 kB / 0.4892 GB, free: 1.281 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2662/0.9274, allocations: 1.911 MB / 0.4911 GB, free: 106.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007021/0.9282, allocations: 234.2 kB / 0.4913 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002347/0.9284, allocations: 33.38 kB / 0.4913 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002479/0.9309, allocations: 249.5 kB / 0.4916 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001743/0.9327, allocations: 437.5 kB / 0.492 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001882/0.9329, allocations: 49.12 kB / 0.492 GB, free: 106.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004454/0.9333, allocations: 252.3 kB / 0.4923 GB, free: 106.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.9334, allocations: 0 / 0.4923 GB, free: 106.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001325/0.9347, allocations: 245.6 kB / 0.4925 GB, free: 106.5 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.0004146/0.9351, allocations: 170.6 kB / 0.4927 GB, free: 106.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004417/0.9396, allocations: 1.227 MB / 0.4939 GB, free: 106.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.9396, allocations: 2.594 kB / 0.4939 GB, free: 106.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00256/0.9422, allocations: 0.7338 MB / 0.4946 GB, free: 106.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001128/0.9434, allocations: 103.8 kB / 0.4947 GB, free: 106.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006674/0.95, allocations: 2.453 MB / 0.4971 GB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005014/0.9506, allocations: 0.9516 MB / 0.498 GB, free: 104.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000445/0.9511, allocations: 62.44 kB / 0.4981 GB, free: 104.4 MB / 378.7 MB Notification: Performance of SimCode: time 2.124e-06/0.9511, allocations: 0 / 0.4981 GB, free: 104.4 MB / 378.7 MB Notification: Performance of Templates: time 0.02802/0.9791, allocations: 16.68 MB / 0.5144 GB, free: 98.75 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches