Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009524/0.0009524, allocations: 88.89 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003056/0.0003058, allocations: 8 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.261, allocations: 50.4 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1003/0.3614, allocations: 85.65 MB / 487.1 MB, free: 10.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.3617, allocations: 71.95 kB / 487.2 MB, free: 10.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0591/0.4208, allocations: 15.12 MB / 0.4906 GB, free: 11.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4208, allocations: 0 / 0.4906 GB, free: 11.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.936e-05/0.4209, allocations: 16 kB / 0.4906 GB, free: 11.51 MB / 378.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.003953/0.4249, allocations: 1.131 MB / 0.4917 GB, free: 10.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/0.4249, allocations: 8.031 kB / 0.4917 GB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003507/0.4253, allocations: 86.97 kB / 0.4918 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009007/0.4262, allocations: 424.9 kB / 0.4922 GB, free: 9.781 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.425e-05/0.4263, allocations: 50 kB / 0.4922 GB, free: 9.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001962/0.4265, allocations: 68 kB / 0.4923 GB, free: 9.664 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002642/0.4292, allocations: 0.7881 MB / 0.4931 GB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.063e-05/0.4292, allocations: 7.906 kB / 0.4931 GB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001332/0.4294, allocations: 32 kB / 0.4931 GB, free: 8.828 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.521e-05/0.4294, allocations: 16 kB / 0.4931 GB, free: 8.812 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003094/0.4325, allocations: 0.8549 MB / 0.4939 GB, free: 7.961 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006905/0.4394, allocations: 2.443 MB / 0.4963 GB, free: 5.391 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00214/0.4416, allocations: 0.7001 MB / 0.497 GB, free: 4.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001105/0.4418, allocations: 16.95 kB / 0.497 GB, free: 4.664 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001815/0.4436, allocations: 0.5556 MB / 0.4976 GB, free: 4.098 MB / 378.7 MB Notification: Performance of pre-optimization done (n=89): time 7.504e-06/0.4436, allocations: 11.94 kB / 0.4976 GB, free: 4.086 MB / 378.7 MB Notification: Performance of matching and sorting (n=109): time 0.2426/0.6862, allocations: 4.412 MB / 0.5019 GB, free: 95.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.6863, allocations: 64.31 kB / 0.502 GB, free: 95.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006808/0.687, allocations: 314.9 kB / 0.5023 GB, free: 95.53 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002759/0.6873, allocations: 57.19 kB / 0.5023 GB, free: 95.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002319/0.6875, allocations: 256.2 kB / 0.5026 GB, free: 95.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000421/0.688, allocations: 374.2 kB / 0.5029 GB, free: 95.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.009e-05/0.6881, allocations: 23.98 kB / 0.5029 GB, free: 95.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.6882, allocations: 373.1 kB / 0.5033 GB, free: 94.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.6895, allocations: 430.5 kB / 0.5037 GB, free: 94.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/0.6906, allocations: 0.5152 MB / 0.5042 GB, free: 94.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009826/0.6916, allocations: 373.1 kB / 0.5046 GB, free: 94.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.6916, allocations: 0 / 0.5046 GB, free: 94.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004106/0.6958, allocations: 1.319 MB / 0.5058 GB, free: 94.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/0.6958, allocations: 5.188 kB / 0.5059 GB, free: 94.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.592e-05/0.6959, allocations: 3.719 kB / 0.5059 GB, free: 94.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/0.697, allocations: 0.5623 MB / 0.5064 GB, free: 94.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000806/0.6978, allocations: 209.8 kB / 0.5066 GB, free: 94.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003319/0.7011, allocations: 3.227 MB / 0.5098 GB, free: 92.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.7025, allocations: 235.2 kB / 0.51 GB, free: 92.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001374/0.7027, allocations: 43.38 kB / 0.51 GB, free: 92.35 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.0004579/0.7031, allocations: 225.8 kB / 0.5102 GB, free: 92.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.7033, allocations: 72.78 kB / 0.5103 GB, free: 92.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002689/0.706, allocations: 1.334 MB / 0.5116 GB, free: 91.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.706, allocations: 13.59 kB / 0.5116 GB, free: 91.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.706, allocations: 0 / 0.5116 GB, free: 91.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.706, allocations: 7.125 kB / 0.5116 GB, free: 91.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004062/0.7101, allocations: 2.494 MB / 0.5141 GB, free: 90.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.084e-06/0.7101, allocations: 2.5 kB / 0.5141 GB, free: 90.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007569/0.7109, allocations: 192.3 kB / 0.5143 GB, free: 90.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008751/0.7118, allocations: 0.5329 MB / 0.5148 GB, free: 90.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.62e-05/0.7119, allocations: 41.72 kB / 0.5148 GB, free: 90.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002743/0.7146, allocations: 3.068 MB / 0.5178 GB, free: 87.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.7146, allocations: 3.938 kB / 0.5178 GB, free: 87.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003342/0.718, allocations: 1.913 MB / 0.5197 GB, free: 86.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003923/0.7184, allocations: 231.4 kB / 0.5199 GB, free: 86.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.7185, allocations: 31.53 kB / 0.5199 GB, free: 86.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/0.7197, allocations: 254.5 kB / 0.5202 GB, free: 86.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008102/0.7205, allocations: 439.8 kB / 0.5206 GB, free: 86.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.299e-05/0.7206, allocations: 46.67 kB / 0.5206 GB, free: 86.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002382/0.7209, allocations: 251.8 kB / 0.5209 GB, free: 86.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7209, allocations: 0 / 0.5209 GB, free: 86.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008288/0.7217, allocations: 251.2 kB / 0.5211 GB, free: 86.22 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.0002799/0.722, allocations: 172.2 kB / 0.5213 GB, free: 86.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002286/0.7243, allocations: 1.226 MB / 0.5225 GB, free: 85.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.7243, allocations: 0 / 0.5225 GB, free: 85.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001391/0.7257, allocations: 0.7939 MB / 0.5233 GB, free: 85.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006486/0.7264, allocations: 109.8 kB / 0.5234 GB, free: 85.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003753/0.7301, allocations: 2.408 MB / 0.5257 GB, free: 83.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.7305, allocations: 0.9536 MB / 0.5266 GB, free: 82.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003922/0.7309, allocations: 76.56 kB / 0.5267 GB, free: 82.44 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.7311, allocations: 59.08 kB / 0.5268 GB, free: 82.39 MB / 378.7 MB Notification: Performance of SimCode: time 2.285e-06/0.7311, allocations: 0 / 0.5268 GB, free: 82.39 MB / 378.7 MB Notification: Performance of Templates: time 0.02094/0.752, allocations: 14.93 MB / 0.5414 GB, free: 69.1 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches