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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 109.8 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001984/0.001984, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 241.8 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 48.02 kB / 300.6 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1252, allocations: 49.45 MB / 350.1 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005716/0.1309, allocations: 4.31 MB / 354.4 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002722/0.1337, allocations: 1.383 MB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003086/0.134, allocations: 11.94 kB / 355.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003337/0.1344, allocations: 83.31 kB / 355.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000385/0.1348, allocations: 194.5 kB / 356 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009333/0.1357, allocations: 382.1 kB / 356.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009506/0.1367, allocations: 1.069 MB / 357.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003534/0.1371, allocations: 230.9 kB / 357.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005216/0.1376, allocations: 442.4 kB / 358.1 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004934/0.1381, allocations: 0.4941 MB / 358.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.1382, allocations: 56 kB / 358.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002628/0.1385, allocations: 104 kB / 358.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001953/0.1387, allocations: 187.3 kB / 359 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003961/0.1391, allocations: 417.8 kB / 359.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006967/0.1398, allocations: 0.7601 MB / 360.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1398, allocations: 0 / 360.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.1398, allocations: 3.984 kB / 360.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.1399, allocations: 0 / 360.1 MB, free: 10.73 MB / 302.1 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.003142/0.143, allocations: 1.283 MB / 361.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.1431, allocations: 8.031 kB / 361.4 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002445/0.1433, allocations: 87.98 kB / 361.5 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005838/0.1439, allocations: 437.6 kB / 361.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.034e-05/0.144, allocations: 54.38 kB / 362 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.1441, allocations: 72.28 kB / 362.1 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.1458, allocations: 0.8077 MB / 362.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.845e-05/0.1458, allocations: 11.97 kB / 362.9 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.461e-05/0.1459, allocations: 24 kB / 362.9 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.1459, allocations: 16 kB / 362.9 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001998/0.1479, allocations: 0.8666 MB / 363.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004194/0.1521, allocations: 2.404 MB / 366.2 MB, free: 4.445 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001492/0.1536, allocations: 0.7074 MB / 366.9 MB, free: 3.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009653/0.1546, allocations: 476.2 kB / 367.4 MB, free: 3.266 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.104e-05/0.1547, allocations: 9 kB / 367.4 MB, free: 3.258 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001234/0.156, allocations: 0.5555 MB / 367.9 MB, free: 2.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 2.585e-06/0.156, allocations: 0 / 367.9 MB, free: 2.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=106): time 0.1963/0.3523, allocations: 4.202 MB / 372.1 MB, free: 25.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.3523, allocations: 63.38 kB / 372.2 MB, free: 25.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004913/0.3528, allocations: 398.1 kB / 372.6 MB, free: 25.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.12e-05/0.3529, allocations: 56.27 kB / 372.6 MB, free: 25.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000198/0.3531, allocations: 274.1 kB / 372.9 MB, free: 24.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000337/0.3535, allocations: 359.2 kB / 373.3 MB, free: 24.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003341/0.3538, allocations: 186.8 kB / 373.4 MB, free: 24.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.3539, allocations: 372.5 kB / 373.8 MB, free: 24.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001076/0.355, allocations: 438.7 kB / 374.2 MB, free: 24.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/0.3561, allocations: 0.5316 MB / 374.8 MB, free: 23.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001628/0.3577, allocations: 0.779 MB / 375.5 MB, free: 23.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3577, allocations: 3.906 kB / 375.6 MB, free: 23.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003077/0.3608, allocations: 1.349 MB / 376.9 MB, free: 23.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.3609, allocations: 5.406 kB / 376.9 MB, free: 23.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.3609, allocations: 5.75 kB / 376.9 MB, free: 23.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001211/0.3621, allocations: 0.6496 MB / 377.6 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008213/0.3629, allocations: 197.2 kB / 377.8 MB, free: 22.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003755/0.3667, allocations: 3.27 MB / 381 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/0.368, allocations: 179.9 kB / 381.2 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.15e-05/0.3681, allocations: 39.8 kB / 381.2 MB, free: 20.01 MB / 302.1 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,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003996/0.3685, allocations: 218.4 kB / 381.5 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.3687, allocations: 70.19 kB / 381.5 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001973/0.3689, allocations: 109.3 kB / 381.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.3689, allocations: 14.03 kB / 381.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.815e-05/0.3689, allocations: 1.25 kB / 381.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.3689, allocations: 6.359 kB / 381.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005435/0.3744, allocations: 2.515 MB / 384.2 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.3744, allocations: 2.406 kB / 384.2 MB, free: 18.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007936/0.3752, allocations: 179 kB / 384.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001128/0.3763, allocations: 0.6265 MB / 385 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/0.3765, allocations: 35.53 kB / 385 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003296/0.3798, allocations: 3.091 MB / 388.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.3798, allocations: 5.875 kB / 388.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004118/0.3839, allocations: 1.853 MB / 390 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004372/0.3843, allocations: 230.5 kB / 390.2 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001733/0.3845, allocations: 36.09 kB / 390.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/0.3859, allocations: 211.6 kB / 390.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008826/0.3868, allocations: 368.5 kB / 390.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.3869, allocations: 39.09 kB / 390.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002545/0.3872, allocations: 272.4 kB / 391.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3872, allocations: 6.375 kB / 391.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009588/0.3881, allocations: 246.8 kB / 391.3 MB, free: 14.29 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003053/0.3884, allocations: 160.7 kB / 391.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002567/0.391, allocations: 1.187 MB / 392.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.391, allocations: 0 / 392.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.3925, allocations: 0.7274 MB / 393.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008391/0.3933, allocations: 125.2 kB / 393.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003894/0.3972, allocations: 2.311 MB / 395.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.3975, allocations: 0.9429 MB / 396.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002336/0.3978, allocations: 61.28 kB / 396.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3978, allocations: 0 / 396.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of Templates: time 0.01975/0.4176, allocations: 17.47 MB / 414.3 MB, free: 10 MB / 318.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches