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.001554/0.001554, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.2 MB / 219.4 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.001072/0.001072, allocations: 93.92 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.575e-05/3.586e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.0924, allocations: 47.57 MB / 369.1 MB, free: 2.215 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4044/0.4969, allocations: 83.42 MB / 452.5 MB, free: 9.852 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/0.4972, allocations: 75.58 kB / 452.6 MB, free: 9.812 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.075/0.5722, allocations: 14.91 MB / 467.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.5723, allocations: 3.938 kB / 467.5 MB, free: 12.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.27e-05/0.5723, allocations: 12 kB / 467.5 MB, free: 12.74 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.004638/0.577, allocations: 1.077 MB / 468.6 MB, free: 11.62 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.5771, allocations: 8.031 kB / 468.6 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004915/0.5776, allocations: 87.02 kB / 468.7 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.5786, allocations: 415.1 kB / 469.1 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-05/0.5788, allocations: 50 kB / 469.1 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002265/0.579, allocations: 71.91 kB / 469.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002308/0.5813, allocations: 0.7218 MB / 469.9 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.272e-05/0.5814, allocations: 7.906 kB / 469.9 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001417/0.5816, allocations: 28 kB / 469.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/0.5816, allocations: 20 kB / 470 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002453/0.5841, allocations: 0.7184 MB / 470.7 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008529/0.5926, allocations: 2.443 MB / 473.1 MB, free: 6.891 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.5945, allocations: 0.613 MB / 473.7 MB, free: 6.258 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001228/0.5958, allocations: 411.8 kB / 474.1 MB, free: 5.855 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001706/0.596, allocations: 16.77 kB / 474.2 MB, free: 5.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001465/0.5975, allocations: 0.4902 MB / 474.7 MB, free: 5.336 MB / 346.7 MB Notification: Performance of pre-optimization done (n=89): time 7.314e-06/0.5975, allocations: 3.984 kB / 474.7 MB, free: 5.332 MB / 346.7 MB Notification: Performance of matching and sorting (n=109): time 0.01121/0.6087, allocations: 2.944 MB / 477.6 MB, free: 2.309 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.6088, allocations: 64.34 kB / 477.7 MB, free: 2.234 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005922/0.6094, allocations: 315.1 kB / 478 MB, free: 1.922 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003076/0.6098, allocations: 57.69 kB / 478 MB, free: 1.859 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000283/0.6101, allocations: 299.6 kB / 478.3 MB, free: 1.562 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006829/0.6108, allocations: 374.8 kB / 478.7 MB, free: 1.191 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.6109, allocations: 24 kB / 478.7 MB, free: 1.168 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002125/0.6111, allocations: 350.7 kB / 479 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/0.6123, allocations: 358.6 kB / 479.4 MB, free: 476 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001274/0.6136, allocations: 455.5 kB / 479.8 MB, free: 4 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.6146, allocations: 301 kB / 480.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.6147, allocations: 0 / 480.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004277/0.619, allocations: 1.155 MB / 481.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.619, allocations: 4 kB / 481.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.07e-05/0.6191, allocations: 4 kB / 481.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001799/0.6209, allocations: 0.5411 MB / 481.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/0.6226, allocations: 211.7 kB / 482 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006266/0.6289, allocations: 3.224 MB / 485.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002433/0.6314, allocations: 231.9 kB / 485.5 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002671/0.6317, allocations: 47.94 kB / 485.5 MB, free: 10.09 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.0003956/0.6321, allocations: 172 kB / 485.7 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002583/0.6324, allocations: 79.14 kB / 485.8 MB, free: 9.836 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004065/0.6365, allocations: 1.193 MB / 487 MB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.829e-05/0.6366, allocations: 8 kB / 487 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.6366, allocations: 4 kB / 487 MB, free: 8.602 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.466e-05/0.6366, allocations: 3.984 kB / 487 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007334/0.644, allocations: 2.353 MB / 489.4 MB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/0.644, allocations: 4 kB / 489.4 MB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001702/0.6457, allocations: 188 kB / 489.5 MB, free: 5.949 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001736/0.6475, allocations: 0.5217 MB / 490.1 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002329/0.6478, allocations: 35.95 kB / 490.1 MB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005537/0.6533, allocations: 3.045 MB / 493.1 MB, free: 2.156 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/0.6534, allocations: 4.188 kB / 493.1 MB, free: 2.152 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005338/0.6587, allocations: 1.712 MB / 494.9 MB, free: 352 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007203/0.6595, allocations: 240.1 kB / 495.1 MB, free: 92 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002363/0.6598, allocations: 35.94 kB / 495.1 MB, free: 56 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002472/0.6623, allocations: 243.8 kB / 495.4 MB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001807/0.6641, allocations: 436.1 kB / 495.8 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002641/0.6644, allocations: 48.14 kB / 495.8 MB, free: 15.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004802/0.6649, allocations: 245.2 kB / 496.1 MB, free: 15.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.32e-07/0.6649, allocations: 4 kB / 496.1 MB, free: 15.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001414/0.6664, allocations: 247.9 kB / 496.3 MB, free: 14.86 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.0005508/0.667, allocations: 180.5 kB / 496.5 MB, free: 14.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003517/0.6705, allocations: 1.094 MB / 497.6 MB, free: 13.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.6706, allocations: 0 / 497.6 MB, free: 13.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002263/0.6728, allocations: 0.6649 MB / 498.3 MB, free: 12.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.6742, allocations: 114.7 kB / 498.4 MB, free: 12.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007487/0.6817, allocations: 1.799 MB / 0.4884 GB, free: 10.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008255/0.6826, allocations: 0.9515 MB / 0.4894 GB, free: 9.938 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004742/0.6831, allocations: 63.42 kB / 0.4894 GB, free: 9.875 MB / 378.7 MB Notification: Performance of SimCode: time 1.433e-06/0.6831, allocations: 0 / 0.4894 GB, free: 9.875 MB / 378.7 MB Notification: Performance of Templates: time 0.03474/0.7179, allocations: 16.67 MB / 0.5057 GB, free: 9.145 MB / 394.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