Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.775/1.775, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003361/0.0003361, allocations: 8 kB / 233.9 MB, free: 2.383 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07786/0.07822, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005685/0.08395, allocations: 3.459 MB / 276.1 MB, free: 8.043 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003113/0.08709, allocations: 1.306 MB / 277.4 MB, free: 6.734 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002754/0.08739, allocations: 12 kB / 277.4 MB, free: 6.723 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002253/0.08763, allocations: 79.38 kB / 277.5 MB, free: 6.645 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006389/0.08829, allocations: 247.3 kB / 277.7 MB, free: 6.402 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.08951, allocations: 327.4 kB / 278 MB, free: 6.082 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001166/0.0907, allocations: 0.6882 MB / 278.7 MB, free: 5.395 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004214/0.09113, allocations: 199.1 kB / 278.9 MB, free: 5.184 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006817/0.09183, allocations: 406.7 kB / 279.3 MB, free: 4.785 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007169/0.09256, allocations: 454.2 kB / 279.8 MB, free: 4.34 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001633/0.09274, allocations: 48 kB / 279.8 MB, free: 4.293 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004402/0.09319, allocations: 139.9 kB / 280 MB, free: 4.156 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002667/0.09347, allocations: 171.3 kB / 280.1 MB, free: 3.988 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002112/0.0937, allocations: 161.3 kB / 280.3 MB, free: 3.824 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001121/0.09483, allocations: 0.7365 MB / 281 MB, free: 3.086 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.09485, allocations: 0 / 281 MB, free: 3.086 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.09486, allocations: 0 / 281 MB, free: 3.086 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.09488, allocations: 0 / 281 MB, free: 3.086 MB / 234.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.004872/0.09976, allocations: 1.236 MB / 282.3 MB, free: 1.801 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.09982, allocations: 8.031 kB / 282.3 MB, free: 1.793 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002976/0.1001, allocations: 86.97 kB / 282.3 MB, free: 1.707 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008272/0.101, allocations: 428.5 kB / 282.8 MB, free: 1.246 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.552e-05/0.1011, allocations: 54 kB / 282.8 MB, free: 1.191 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002004/0.1013, allocations: 71.91 kB / 282.9 MB, free: 1.121 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002625/0.1039, allocations: 0.7959 MB / 283.7 MB, free: 324 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.164e-05/0.104, allocations: 12 kB / 283.7 MB, free: 312 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001199/0.1041, allocations: 24 kB / 283.7 MB, free: 288 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/0.1041, allocations: 16 kB / 283.7 MB, free: 272 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003403/0.1076, allocations: 0.8822 MB / 284.6 MB, free: 15.39 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007073/0.1146, allocations: 2.431 MB / 287 MB, free: 12.83 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002905/0.1176, allocations: 0.7192 MB / 287.8 MB, free: 12.1 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001223/0.1177, allocations: 12.98 kB / 287.8 MB, free: 12.09 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001936/0.1197, allocations: 0.5555 MB / 288.3 MB, free: 11.52 MB / 250.7 MB Notification: Performance of pre-optimization done (n=86): time 3.948e-06/0.1197, allocations: 0 / 288.3 MB, free: 11.52 MB / 250.7 MB Notification: Performance of matching and sorting (n=106): time 0.01981/0.1395, allocations: 4.586 MB / 292.9 MB, free: 6.801 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.1396, allocations: 64.41 kB / 293 MB, free: 6.727 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006369/0.1403, allocations: 393.9 kB / 293.4 MB, free: 6.336 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001698/0.1404, allocations: 53.69 kB / 293.4 MB, free: 6.277 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/0.1407, allocations: 268.9 kB / 293.7 MB, free: 6.008 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004225/0.1411, allocations: 367 kB / 294 MB, free: 5.645 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.595e-05/0.1413, allocations: 20 kB / 294.1 MB, free: 5.625 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001883/0.1415, allocations: 374.8 kB / 294.4 MB, free: 5.25 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001696/0.1432, allocations: 434.4 kB / 294.9 MB, free: 4.824 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001786/0.145, allocations: 0.5344 MB / 295.4 MB, free: 4.27 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001509/0.1465, allocations: 390.3 kB / 295.8 MB, free: 3.895 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1465, allocations: 3.938 kB / 295.8 MB, free: 3.891 MB / 250.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005482/0.152, allocations: 1.494 MB / 297.3 MB, free: 2.379 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.152, allocations: 9.094 kB / 297.3 MB, free: 2.371 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.1521, allocations: 0 / 297.3 MB, free: 2.371 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00163/0.1537, allocations: 0.545 MB / 297.8 MB, free: 1.816 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001967/0.1557, allocations: 207.7 kB / 298 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2088/0.3645, allocations: 3.273 MB / 301.3 MB, free: 29.22 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002232/0.3668, allocations: 234.2 kB / 301.5 MB, free: 29.22 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.3669, allocations: 43.73 kB / 301.6 MB, free: 29.22 MB / 250.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): 112 * 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 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005014/0.3674, allocations: 221.5 kB / 301.8 MB, free: 29.11 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.3676, allocations: 72.31 kB / 301.9 MB, free: 29.11 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000295/0.3679, allocations: 105.2 kB / 302 MB, free: 29.09 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.468e-05/0.3679, allocations: 5.25 kB / 302 MB, free: 29.09 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.368, allocations: 1.375 kB / 302 MB, free: 29.09 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004461/0.3684, allocations: 226.9 kB / 302.2 MB, free: 29 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002398/0.3687, allocations: 32.8 kB / 302.2 MB, free: 29 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002368/0.371, allocations: 274.9 kB / 302.5 MB, free: 29 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006357/0.3717, allocations: 197.1 kB / 302.7 MB, free: 29 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006981/0.3787, allocations: 1.381 MB / 304.1 MB, free: 28.79 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.005199/0.3839, allocations: 1.634 MB / 305.7 MB, free: 28.11 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001656/0.3856, allocations: 481.6 kB / 306.2 MB, free: 27.94 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004187/0.3861, allocations: 270.5 kB / 306.4 MB, free: 27.8 MB / 250.7 MB Notification: Performance of Backend: time 7.82e-07/0.3861, allocations: 0 / 306.4 MB, free: 27.8 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003071/0.3892, allocations: 0.8998 MB / 307.3 MB, free: 27.4 MB / 250.7 MB Notification: Performance of SimCode: time 0.003876/0.3931, allocations: 2.494 MB / 309.8 MB, free: 25.64 MB / 250.7 MB Notification: Performance of Templates: time 0.03247/0.4256, allocations: 13.91 MB / 323.7 MB, free: 16.52 MB / 250.7 MB "" Variables in the reference: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 Variables in the result:TAmbient.T,brake.cgeo,brake.fn_max,brake.mode,brake.mue_pos[1,1],brake.mue_pos[1,2],brake.peak,brake.startBackward,brake.startForward,brake.v_small,const.k,const.y,convection.Gc,damper.d,damper.flange_b.s,damper.s_nominal,damper.s_rel,damper.v_rel,elastoGap.c,elastoGap.d,elastoGap.flange_a.s,elastoGap.n,elastoGap.s_nominal,elastoGap.s_rel0,fixed1.flange.s,fixed1.s0,fixed2.flange.s,fixed2.s0,mass1.L,mass1.m,mass1.stateSelect,mass2.L,mass2.m,mass2.stateSelect,mass3.L,mass3.m,mass3.stateSelect,massWithStopAndFriction.F_Coulomb,massWithStopAndFriction.F_Stribeck,massWithStopAndFriction.F_prop,massWithStopAndFriction.L,massWithStopAndFriction.fexp,massWithStopAndFriction.m,massWithStopAndFriction.mode,massWithStopAndFriction.s,massWithStopAndFriction.smax,massWithStopAndFriction.smin,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,massWithStopAndFriction.v,massWithStopAndFriction.v_small,sine1.amplitude,sine1.freqHz,sine1.offset,sine1.phase,sine1.startTime,sine2.amplitude,sine2.freqHz,sine2.offset,sine2.phase,sine2.startTime,spring.c,spring.s_rel0,springDamper.c,springDamper.d,springDamper.s_nominal,springDamper.s_rel,springDamper.s_rel0,springDamper.v_rel,springDamper1.c,springDamper1.d,springDamper1.s_nominal,springDamper1.s_rel,springDamper1.s_rel0,springDamper1.v_rel,supportFriction.f_pos[1,1],supportFriction.f_pos[1,2],supportFriction.mode,supportFriction.peak,supportFriction.startBackward,supportFriction.startForward,supportFriction.v_small,time