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.001594/0.001594, allocations: 177 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 105.7 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.221e-05/1.221e-05, allocations: 0 / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08438/0.08441, allocations: 50.43 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3092/0.3937, allocations: 84.9 MB / 472.4 MB, free: 9.926 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/0.394, allocations: 71.97 kB / 472.4 MB, free: 9.855 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06198/0.456, allocations: 14.99 MB / 487.4 MB, free: 10.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.456, allocations: 0 / 487.4 MB, free: 10.8 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.408e-05/0.4561, allocations: 15.98 kB / 487.4 MB, free: 10.78 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.003479/0.4596, allocations: 1.073 MB / 488.5 MB, free: 9.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.4596, allocations: 8.031 kB / 488.5 MB, free: 9.652 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003185/0.46, allocations: 87.06 kB / 488.6 MB, free: 9.566 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008254/0.4608, allocations: 423.4 kB / 489 MB, free: 9.109 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.858e-05/0.4609, allocations: 24 kB / 489 MB, free: 9.086 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/0.461, allocations: 47.89 kB / 489.1 MB, free: 9.039 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001942/0.463, allocations: 0.6833 MB / 489.8 MB, free: 8.355 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/0.4648, allocations: 0.6203 MB / 490.4 MB, free: 7.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.143e-05/0.4648, allocations: 7.984 kB / 490.4 MB, free: 7.723 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001135/0.4649, allocations: 4 kB / 490.4 MB, free: 7.719 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.592e-05/0.465, allocations: 16 kB / 490.4 MB, free: 7.703 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006569/0.4716, allocations: 2.319 MB / 492.7 MB, free: 5.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/0.473, allocations: 0.588 MB / 493.3 MB, free: 4.672 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008274/0.4739, allocations: 387.8 kB / 493.7 MB, free: 4.293 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001264/0.474, allocations: 16.73 kB / 493.7 MB, free: 4.273 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001138/0.4752, allocations: 468.4 kB / 494.2 MB, free: 3.805 MB / 362.7 MB Notification: Performance of pre-optimization done (n=89): time 6.021e-06/0.4752, allocations: 3.844 kB / 494.2 MB, free: 3.805 MB / 362.7 MB Notification: Performance of matching and sorting (n=109): time 0.008273/0.4835, allocations: 2.609 MB / 496.8 MB, free: 1.109 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.9e-05/0.4836, allocations: 64.72 kB / 496.9 MB, free: 1.035 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004816/0.4841, allocations: 285.2 kB / 497.1 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001338/0.4842, allocations: 49.62 kB / 497.2 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002454/0.4845, allocations: 253.1 kB / 497.4 MB, free: 456 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003842/0.4849, allocations: 358.8 kB / 497.8 MB, free: 92 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.376e-05/0.485, allocations: 4 kB / 497.8 MB, free: 88 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002221/0.4852, allocations: 374.8 kB / 498.2 MB, free: 15.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008131/0.486, allocations: 330.6 kB / 498.5 MB, free: 15.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009675/0.487, allocations: 424.9 kB / 498.9 MB, free: 14.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.4881, allocations: 306.2 kB / 499.2 MB, free: 14.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.4881, allocations: 0 / 499.2 MB, free: 14.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003785/0.4919, allocations: 1.092 MB / 0.4886 GB, free: 13.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.936e-05/0.492, allocations: 8 kB / 0.4886 GB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.912e-05/0.492, allocations: 3.984 kB / 0.4886 GB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001579/0.4936, allocations: 0.545 MB / 0.4891 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.4949, allocations: 203.7 kB / 0.4893 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005974/0.5009, allocations: 3.228 MB / 0.4924 GB, free: 9.387 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002114/0.5031, allocations: 223.9 kB / 0.4927 GB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/0.5033, allocations: 39.98 kB / 0.4927 GB, free: 9.129 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: massWithStopAndFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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.0004668/0.5037, allocations: 132.6 kB / 0.4928 GB, free: 9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/0.504, allocations: 79.16 kB / 0.4929 GB, free: 8.922 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003486/0.5075, allocations: 1.126 MB / 0.494 GB, free: 7.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.499e-05/0.5075, allocations: 8 kB / 0.494 GB, free: 7.762 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.5075, allocations: 0 / 0.494 GB, free: 7.762 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-05/0.5075, allocations: 7.984 kB / 0.494 GB, free: 7.754 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006023/0.5136, allocations: 2.205 MB / 0.4962 GB, free: 5.449 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.5136, allocations: 4 kB / 0.4962 GB, free: 5.445 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/0.5149, allocations: 188 kB / 0.4964 GB, free: 5.262 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001386/0.5163, allocations: 0.5062 MB / 0.4968 GB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001251/0.5165, allocations: 27.95 kB / 0.4969 GB, free: 4.719 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004972/0.5215, allocations: 3.036 MB / 0.4998 GB, free: 1.516 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/0.5215, allocations: 8.125 kB / 0.4998 GB, free: 1.508 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004476/0.526, allocations: 1.658 MB / 0.5015 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005869/0.5266, allocations: 228.2 kB / 0.5017 GB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002075/0.5268, allocations: 19.98 kB / 0.5017 GB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002026/0.5289, allocations: 231.8 kB / 0.5019 GB, free: 15.26 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001454/0.5304, allocations: 436.4 kB / 0.5023 GB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001606/0.5305, allocations: 47.92 kB / 0.5024 GB, free: 14.79 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003722/0.5309, allocations: 223 kB / 0.5026 GB, free: 14.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5309, allocations: 0 / 0.5026 GB, free: 14.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001273/0.5322, allocations: 211.9 kB / 0.5028 GB, free: 14.36 MB / 394.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.0004182/0.5326, allocations: 156.8 kB / 0.503 GB, free: 14.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002557/0.5352, allocations: 1.03 MB / 0.504 GB, free: 13.15 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.5352, allocations: 4 kB / 0.504 GB, free: 13.14 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001947/0.5372, allocations: 0.686 MB / 0.5046 GB, free: 12.45 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.5383, allocations: 83.97 kB / 0.5047 GB, free: 12.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005726/0.544, allocations: 1.728 MB / 0.5064 GB, free: 10.59 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007465/0.5448, allocations: 0.9517 MB / 0.5073 GB, free: 9.605 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005991/0.5454, allocations: 69.34 kB / 0.5074 GB, free: 9.535 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/0.5456, allocations: 55.41 kB / 0.5074 GB, free: 9.48 MB / 394.7 MB Notification: Performance of SimCode: time 9.12e-07/0.5457, allocations: 0 / 0.5074 GB, free: 9.48 MB / 394.7 MB Notification: Performance of Templates: time 0.03058/0.5762, allocations: 14.26 MB / 0.5214 GB, free: 11.28 MB / 410.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