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.00166/0.00166, allocations: 111.9 kB / 17.68 MB, free: 5.473 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.001987/0.001987, allocations: 192 kB / 18.62 MB, free: 4.543 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.374/1.374, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 51.42 kB / 302.1 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09872/0.1001, allocations: 49.43 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005846/0.1059, allocations: 4.31 MB / 355.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002892/0.1089, allocations: 1.379 MB / 357.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006149/0.1095, allocations: 11.94 kB / 357.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000459/0.11, allocations: 114.8 kB / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006862/0.1107, allocations: 230 kB / 357.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001109/0.1119, allocations: 425.3 kB / 357.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001243/0.1131, allocations: 1.131 MB / 359.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000386/0.1135, allocations: 269.6 kB / 359.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005824/0.1141, allocations: 482.6 kB / 359.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005143/0.1146, allocations: 0.5098 MB / 360.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001259/0.1148, allocations: 92 kB / 360.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002573/0.115, allocations: 151.9 kB / 360.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002095/0.1152, allocations: 223.3 kB / 360.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003737/0.1156, allocations: 446 kB / 361.2 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009102/0.1165, allocations: 1.063 MB / 362.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1166, allocations: 3.984 kB / 362.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1166, allocations: 0 / 362.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.1166, allocations: 4 kB / 362.3 MB, free: 8.848 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.002912/0.1195, allocations: 1.279 MB / 363.6 MB, free: 7.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.1195, allocations: 12.03 kB / 363.6 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002212/0.1198, allocations: 87.98 kB / 363.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006581/0.1204, allocations: 449.6 kB / 364.1 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.446e-05/0.1205, allocations: 50.38 kB / 364.1 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.1206, allocations: 72.28 kB / 364.2 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.1222, allocations: 0.8116 MB / 365 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/0.1222, allocations: 0 / 365 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.667e-05/0.1223, allocations: 32 kB / 365.1 MB, free: 5.973 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.1223, allocations: 16 kB / 365.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001972/0.1243, allocations: 0.8705 MB / 365.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004198/0.1285, allocations: 2.376 MB / 368.3 MB, free: 2.582 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.13, allocations: 0.7075 MB / 369 MB, free: 1.863 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009581/0.131, allocations: 479.9 kB / 369.5 MB, free: 1.398 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.25e-05/0.1311, allocations: 16.98 kB / 369.5 MB, free: 1.383 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001159/0.1323, allocations: 0.5516 MB / 370.1 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 3.767e-06/0.1323, allocations: 0 / 370.1 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of matching and sorting (n=106): time 0.1691/0.3014, allocations: 4.198 MB / 374.3 MB, free: 24.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.3015, allocations: 67.81 kB / 374.3 MB, free: 24.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000395/0.3019, allocations: 394.1 kB / 374.7 MB, free: 24.19 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.955e-05/0.302, allocations: 57.64 kB / 374.8 MB, free: 24.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.3021, allocations: 267.7 kB / 375 MB, free: 23.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/0.3023, allocations: 358.8 kB / 375.4 MB, free: 23.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002937/0.3026, allocations: 188.7 kB / 375.6 MB, free: 23.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.221e-05/0.3027, allocations: 368.4 kB / 375.9 MB, free: 23.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008884/0.3036, allocations: 442.8 kB / 376.4 MB, free: 23.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009257/0.3045, allocations: 0.5335 MB / 376.9 MB, free: 22.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001513/0.3061, allocations: 0.784 MB / 377.7 MB, free: 22.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.3061, allocations: 3.906 kB / 377.7 MB, free: 22.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002807/0.3089, allocations: 1.35 MB / 379 MB, free: 22.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.3089, allocations: 6.062 kB / 379 MB, free: 22.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.3089, allocations: 4.625 kB / 379 MB, free: 22.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.31, allocations: 0.6474 MB / 379.7 MB, free: 21.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007667/0.3108, allocations: 205.3 kB / 379.9 MB, free: 21.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003372/0.3142, allocations: 3.433 MB / 383.3 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.3153, allocations: 175.5 kB / 383.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.993e-05/0.3154, allocations: 39.75 kB / 383.5 MB, free: 18.83 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.0003139/0.3157, allocations: 228.2 kB / 383.8 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.3158, allocations: 75.86 kB / 383.8 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001977/0.316, allocations: 107.3 kB / 383.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.316, allocations: 10.31 kB / 383.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.3161, allocations: 1.094 kB / 383.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.3161, allocations: 5.391 kB / 383.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004204/0.3203, allocations: 2.496 MB / 386.4 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.3203, allocations: 10.05 kB / 386.5 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007543/0.3211, allocations: 171.5 kB / 386.6 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009932/0.3221, allocations: 0.6262 MB / 387.2 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.08e-05/0.3222, allocations: 36.06 kB / 387.3 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00279/0.325, allocations: 3.217 MB / 390.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.325, allocations: 2.109 kB / 390.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003348/0.3283, allocations: 1.852 MB / 392.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003377/0.3287, allocations: 232.5 kB / 392.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.3288, allocations: 32.62 kB / 392.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0012/0.33, allocations: 205.8 kB / 392.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007811/0.3308, allocations: 379.2 kB / 393.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.854e-05/0.3309, allocations: 39.5 kB / 393.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002373/0.3312, allocations: 273.3 kB / 393.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3312, allocations: 0 / 393.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007736/0.3319, allocations: 243.8 kB / 393.7 MB, free: 12.93 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.0002454/0.3322, allocations: 169.4 kB / 393.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002373/0.3346, allocations: 1.193 MB / 395.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.3346, allocations: 1.375 kB / 395.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.3359, allocations: 0.7811 MB / 395.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007451/0.3367, allocations: 136.6 kB / 396 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00318/0.3399, allocations: 1.952 MB / 398 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.3402, allocations: 0.9309 MB / 398.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003018/0.3405, allocations: 77.44 kB / 399 MB, free: 9.426 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.3407, allocations: 63.41 kB / 399 MB, free: 9.363 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3407, allocations: 0 / 399 MB, free: 9.363 MB / 302.1 MB Notification: Performance of Templates: time 0.02299/0.3637, allocations: 17.56 MB / 416.6 MB, free: 7.891 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 -s cvode -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