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.001048/0.001048, allocations: 177.3 kB / 17.41 MB, free: 4.418 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.694/1.694, allocations: 205.4 MB / 223.6 MB, free: 9.043 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.0007786/0.0007787, allocations: 89.42 kB / 271.9 MB, free: 8.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003533/0.0003534, allocations: 8 kB / 328.1 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.245, allocations: 47.56 MB / 375.7 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1003/0.3454, allocations: 83.58 MB / 459.3 MB, free: 13.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.3457, allocations: 83.95 kB / 459.4 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04437/0.3901, allocations: 14.92 MB / 474.3 MB, free: 14.01 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3901, allocations: 0 / 474.3 MB, free: 14.01 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.261e-05/0.3902, allocations: 16 kB / 474.3 MB, free: 13.99 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.003165/0.3933, allocations: 1.123 MB / 475.4 MB, free: 12.81 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.3934, allocations: 8.031 kB / 475.4 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004127/0.3938, allocations: 87.91 kB / 475.5 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008264/0.3947, allocations: 433.6 kB / 476 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.109e-05/0.3948, allocations: 50.38 kB / 476 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000192/0.395, allocations: 72.38 kB / 476.1 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001974/0.3969, allocations: 0.7964 MB / 476.9 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.763e-05/0.397, allocations: 8.094 kB / 476.9 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/0.3971, allocations: 31.94 kB / 476.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.3971, allocations: 16 kB / 476.9 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002074/0.3992, allocations: 0.851 MB / 477.8 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005186/0.4044, allocations: 2.447 MB / 480.2 MB, free: 7.855 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/0.4059, allocations: 0.7019 MB / 480.9 MB, free: 7.141 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001067/0.407, allocations: 476.3 kB / 481.4 MB, free: 6.676 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001119/0.4071, allocations: 20.94 kB / 481.4 MB, free: 6.656 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001248/0.4084, allocations: 0.5632 MB / 482 MB, free: 6.082 MB / 362.7 MB Notification: Performance of pre-optimization done (n=89): time 4.759e-06/0.4084, allocations: 0 / 482 MB, free: 6.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=109): time 0.01176/0.4202, allocations: 4.426 MB / 486.4 MB, free: 1.527 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.4203, allocations: 64.41 kB / 486.5 MB, free: 1.453 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004832/0.4208, allocations: 365.8 kB / 486.8 MB, free: 1.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.4209, allocations: 61.69 kB / 486.9 MB, free: 1.023 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/0.4211, allocations: 253.2 kB / 487.1 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003229/0.4215, allocations: 366.8 kB / 487.5 MB, free: 416 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.5e-05/0.4215, allocations: 24 kB / 487.5 MB, free: 392 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.4217, allocations: 374.8 kB / 487.9 MB, free: 8 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.4228, allocations: 430.4 kB / 488.3 MB, free: 15.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.4238, allocations: 0.5188 MB / 488.8 MB, free: 15.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001738/0.4256, allocations: 0.7714 MB / 489.6 MB, free: 14.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.4256, allocations: 0 / 489.6 MB, free: 14.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003254/0.4289, allocations: 1.311 MB / 490.9 MB, free: 12.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.4289, allocations: 8 kB / 490.9 MB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.23e-05/0.4289, allocations: 3.938 kB / 490.9 MB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.4301, allocations: 0.5761 MB / 491.5 MB, free: 12.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000765/0.4309, allocations: 207.7 kB / 491.7 MB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004248/0.4351, allocations: 3.232 MB / 494.9 MB, free: 8.711 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/0.4364, allocations: 235.9 kB / 495.1 MB, free: 8.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/0.4366, allocations: 39.98 kB / 495.2 MB, free: 8.441 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.0005152/0.4371, allocations: 225.4 kB / 495.4 MB, free: 8.215 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000185/0.4373, allocations: 67.25 kB / 495.5 MB, free: 8.148 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003165/0.4405, allocations: 1.333 MB / 496.8 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.4405, allocations: 16 kB / 496.8 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.4405, allocations: 0 / 496.8 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.661e-05/0.4405, allocations: 11.91 kB / 496.8 MB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005029/0.4456, allocations: 2.488 MB / 499.3 MB, free: 4.164 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.4456, allocations: 0 / 499.3 MB, free: 4.164 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008192/0.4464, allocations: 188 kB / 499.5 MB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001006/0.4475, allocations: 0.5294 MB / 0.4883 GB, free: 3.441 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/0.4476, allocations: 39.89 kB / 0.4884 GB, free: 3.402 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003544/0.4511, allocations: 3.054 MB / 0.4913 GB, free: 168 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/0.4512, allocations: 11.94 kB / 0.4913 GB, free: 156 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1645/0.6157, allocations: 1.821 MB / 0.4931 GB, free: 106.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004184/0.6161, allocations: 229.8 kB / 0.4933 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/0.6163, allocations: 32.44 kB / 0.4934 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.6175, allocations: 256.7 kB / 0.4936 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009119/0.6184, allocations: 431.5 kB / 0.494 GB, free: 106.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.6185, allocations: 48.77 kB / 0.4941 GB, free: 106.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002857/0.6188, allocations: 254 kB / 0.4943 GB, free: 106.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6188, allocations: 0 / 0.4943 GB, free: 106.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008708/0.6197, allocations: 248.4 kB / 0.4946 GB, free: 106.6 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.0002866/0.62, allocations: 166.8 kB / 0.4947 GB, free: 106.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002508/0.6225, allocations: 1.229 MB / 0.4959 GB, free: 106.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.6225, allocations: 0 / 0.4959 GB, free: 106.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001367/0.6239, allocations: 0.7355 MB / 0.4966 GB, free: 106.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009139/0.6248, allocations: 122.2 kB / 0.4968 GB, free: 106.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00383/0.6286, allocations: 2.456 MB / 0.4992 GB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.629, allocations: 0.9378 MB / 0.5001 GB, free: 104.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002458/0.6293, allocations: 63.86 kB / 0.5001 GB, free: 104.4 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.6293, allocations: 0 / 0.5001 GB, free: 104.4 MB / 378.7 MB Notification: Performance of Templates: time 0.01601/0.6453, allocations: 17.39 MB / 0.5171 GB, free: 97.08 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