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.001339/0.00134, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001571/0.001571, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.47/1.47, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001078/0.001078, allocations: 49.83 kB / 300.6 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08932/0.09042, allocations: 49.45 MB / 350.1 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00543/0.09589, allocations: 4.303 MB / 354.4 MB, free: 104 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002715/0.09863, allocations: 1.368 MB / 355.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004422/0.09909, allocations: 11.94 kB / 355.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003213/0.09942, allocations: 122.8 kB / 355.9 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004032/0.09985, allocations: 226 kB / 356.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.1009, allocations: 430.4 kB / 356.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009328/0.1019, allocations: 1.127 MB / 357.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003683/0.1022, allocations: 253.7 kB / 357.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005248/0.1028, allocations: 482.6 kB / 358.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005252/0.1033, allocations: 0.5176 MB / 358.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000142/0.1035, allocations: 92 kB / 358.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002781/0.1037, allocations: 140 kB / 359.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002164/0.104, allocations: 223.3 kB / 359.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003915/0.1044, allocations: 449.9 kB / 359.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009423/0.1053, allocations: 1.051 MB / 360.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1053, allocations: 0 / 360.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1053, allocations: 0 / 360.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.1054, allocations: 0 / 360.8 MB, free: 9.625 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.003271/0.1086, allocations: 1.291 MB / 362.1 MB, free: 8.285 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1087, allocations: 8.031 kB / 362.1 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002879/0.109, allocations: 84 kB / 362.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005731/0.1096, allocations: 441.6 kB / 362.6 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.183e-05/0.1096, allocations: 58.38 kB / 362.7 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.1098, allocations: 80.2 kB / 362.7 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.1114, allocations: 0.8038 MB / 363.5 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.801e-05/0.1114, allocations: 8 kB / 363.6 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.392e-05/0.1115, allocations: 31.94 kB / 363.6 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.1115, allocations: 16 kB / 363.6 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001953/0.1135, allocations: 0.8704 MB / 364.5 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004253/0.1177, allocations: 2.396 MB / 366.9 MB, free: 3.328 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.1193, allocations: 0.7036 MB / 367.6 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009626/0.1202, allocations: 480.2 kB / 368 MB, free: 2.145 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.31e-05/0.1203, allocations: 9 kB / 368 MB, free: 2.137 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001184/0.1215, allocations: 0.5516 MB / 368.6 MB, free: 1.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 2.806e-06/0.1215, allocations: 0 / 368.6 MB, free: 1.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=106): time 0.179/0.3006, allocations: 4.208 MB / 372.8 MB, free: 25.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.432e-05/0.3006, allocations: 62.59 kB / 372.9 MB, free: 24.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004902/0.3011, allocations: 398.7 kB / 373.3 MB, free: 24.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.727e-05/0.3013, allocations: 57.47 kB / 373.3 MB, free: 24.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.3014, allocations: 270.1 kB / 373.6 MB, free: 24.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002287/0.3017, allocations: 355.4 kB / 373.9 MB, free: 24.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002909/0.302, allocations: 187.3 kB / 374.1 MB, free: 24.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.3021, allocations: 377.1 kB / 374.5 MB, free: 23.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009433/0.303, allocations: 437.9 kB / 374.9 MB, free: 23.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.3041, allocations: 0.5263 MB / 375.4 MB, free: 23.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001661/0.3057, allocations: 0.784 MB / 376.2 MB, free: 23.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.3057, allocations: 0.6562 kB / 376.2 MB, free: 23.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003042/0.3088, allocations: 1.36 MB / 377.6 MB, free: 22.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.3088, allocations: 9.5 kB / 377.6 MB, free: 22.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.3089, allocations: 1.062 kB / 377.6 MB, free: 22.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.31, allocations: 0.6453 MB / 378.2 MB, free: 22.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007785/0.3108, allocations: 204.6 kB / 378.4 MB, free: 22.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003441/0.3142, allocations: 3.439 MB / 381.9 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/0.3155, allocations: 175.1 kB / 382 MB, free: 19.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.919e-05/0.3156, allocations: 40.08 kB / 382.1 MB, free: 19.41 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.0003581/0.3159, allocations: 226.9 kB / 382.3 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.3161, allocations: 71.25 kB / 382.4 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001885/0.3163, allocations: 100.6 kB / 382.5 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.3163, allocations: 14.09 kB / 382.5 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.658e-05/0.3163, allocations: 3.938 kB / 382.5 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/0.3163, allocations: 6.906 kB / 382.5 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004519/0.3208, allocations: 2.527 MB / 385 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.3209, allocations: 2.281 kB / 385 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007881/0.3217, allocations: 176.7 kB / 385.2 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.3227, allocations: 0.6157 MB / 385.8 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.661e-05/0.3228, allocations: 42.77 kB / 385.9 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003202/0.326, allocations: 3.214 MB / 389.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3261, allocations: 2.531 kB / 389.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003765/0.3298, allocations: 1.85 MB / 390.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003334/0.3302, allocations: 224.8 kB / 391.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/0.3303, allocations: 43.25 kB / 391.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001275/0.3316, allocations: 201.1 kB / 391.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007445/0.3324, allocations: 373.2 kB / 391.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.157e-05/0.3324, allocations: 43.89 kB / 391.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002662/0.3327, allocations: 269.7 kB / 392 MB, free: 13.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3327, allocations: 0 / 392 MB, free: 13.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008214/0.3336, allocations: 248.8 kB / 392.3 MB, free: 13.57 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.0002589/0.3338, allocations: 176.6 kB / 392.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002925/0.3368, allocations: 1.228 MB / 393.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.3368, allocations: 1.5 kB / 393.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001505/0.3383, allocations: 0.7788 MB / 394.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008593/0.3392, allocations: 139.4 kB / 394.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003357/0.3425, allocations: 1.962 MB / 396.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.3428, allocations: 0.9397 MB / 397.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003243/0.3431, allocations: 80.34 kB / 397.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001645/0.3433, allocations: 67.2 kB / 397.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3433, allocations: 0 / 397.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of Templates: time 0.02352/0.3668, allocations: 17.54 MB / 415.2 MB, free: 8.75 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/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