Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.829/1.829, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003425/0.0003426, allocations: 11.94 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08917/0.08954, allocations: 44.51 MB / 309.1 MB, free: 356 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005576/0.09517, allocations: 3.444 MB / 312.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00303/0.09824, allocations: 1.307 MB / 313.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002743/0.09854, allocations: 11.94 kB / 313.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002264/0.09878, allocations: 79.38 kB / 313.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006233/0.09942, allocations: 255.2 kB / 314.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001237/0.1007, allocations: 319.3 kB / 314.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001313/0.102, allocations: 0.6923 MB / 315.2 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004662/0.1025, allocations: 199.1 kB / 315.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000816/0.1033, allocations: 410.7 kB / 315.8 MB, free: 9.605 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007762/0.1041, allocations: 462.3 kB / 316.2 MB, free: 9.152 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001719/0.1043, allocations: 48 kB / 316.3 MB, free: 9.105 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003855/0.1047, allocations: 91.94 kB / 316.3 MB, free: 9.016 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002629/0.105, allocations: 179.3 kB / 316.5 MB, free: 8.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002172/0.1052, allocations: 153.3 kB / 316.7 MB, free: 8.684 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001148/0.1064, allocations: 0.7365 MB / 317.4 MB, free: 7.945 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.1064, allocations: 0 / 317.4 MB, free: 7.945 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1064, allocations: 3.938 kB / 317.4 MB, free: 7.941 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.1064, allocations: 0 / 317.4 MB, free: 7.941 MB / 266.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.004969/0.1114, allocations: 1.224 MB / 318.6 MB, free: 6.668 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.1115, allocations: 8.031 kB / 318.6 MB, free: 6.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003333/0.1118, allocations: 90.92 kB / 318.7 MB, free: 6.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008642/0.1127, allocations: 428.7 kB / 319.1 MB, free: 6.113 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.71e-05/0.1128, allocations: 54 kB / 319.2 MB, free: 6.059 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002026/0.113, allocations: 67.91 kB / 319.3 MB, free: 5.992 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002704/0.1157, allocations: 0.8114 MB / 320.1 MB, free: 5.172 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.106e-05/0.1158, allocations: 7.984 kB / 320.1 MB, free: 5.164 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001336/0.116, allocations: 32 kB / 320.1 MB, free: 5.133 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.335e-05/0.116, allocations: 19.95 kB / 320.1 MB, free: 5.113 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003432/0.1194, allocations: 0.8978 MB / 321 MB, free: 4.219 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007015/0.1265, allocations: 2.451 MB / 323.5 MB, free: 1.637 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002489/0.129, allocations: 0.7331 MB / 324.2 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000122/0.1291, allocations: 12.94 kB / 324.2 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00195/0.1311, allocations: 0.5633 MB / 324.8 MB, free: 320 kB / 266.7 MB Notification: Performance of pre-optimization done (n=86): time 3.657e-06/0.1311, allocations: 0 / 324.8 MB, free: 320 kB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.01934/0.1505, allocations: 4.473 MB / 329.3 MB, free: 11.71 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/0.1506, allocations: 64.41 kB / 329.3 MB, free: 11.63 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006384/0.1512, allocations: 385.9 kB / 329.7 MB, free: 11.25 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001565/0.1514, allocations: 61.62 kB / 329.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000258/0.1516, allocations: 265 kB / 330 MB, free: 10.92 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004721/0.1521, allocations: 362.9 kB / 330.4 MB, free: 10.56 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.807e-05/0.1522, allocations: 20 kB / 330.4 MB, free: 10.54 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002028/0.1525, allocations: 374.8 kB / 330.8 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00172/0.1542, allocations: 454.4 kB / 331.2 MB, free: 9.719 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/0.1561, allocations: 0.5344 MB / 331.7 MB, free: 9.168 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001543/0.1576, allocations: 394.3 kB / 332.1 MB, free: 8.785 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.1576, allocations: 0 / 332.1 MB, free: 8.785 MB / 282.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005308/0.163, allocations: 1.373 MB / 333.5 MB, free: 7.395 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.163, allocations: 4 kB / 333.5 MB, free: 7.391 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.163, allocations: 8 kB / 333.5 MB, free: 7.383 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001945/0.165, allocations: 0.6465 MB / 334.2 MB, free: 6.727 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/0.1666, allocations: 211.7 kB / 334.4 MB, free: 6.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006406/0.173, allocations: 3.31 MB / 337.7 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002269/0.1753, allocations: 231.9 kB / 337.9 MB, free: 2.789 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/0.1755, allocations: 47.94 kB / 337.9 MB, free: 2.742 MB / 282.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.0005683/0.1761, allocations: 221.6 kB / 338.2 MB, free: 2.52 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000218/0.1763, allocations: 71.16 kB / 338.2 MB, free: 2.449 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002965/0.1766, allocations: 107 kB / 338.3 MB, free: 2.34 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.1767, allocations: 3.984 kB / 338.3 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.1767, allocations: 0 / 338.3 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005183/0.1772, allocations: 232.1 kB / 338.6 MB, free: 2.09 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002439/0.1775, allocations: 39.95 kB / 338.6 MB, free: 2.051 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002388/0.1799, allocations: 267.7 kB / 338.9 MB, free: 1.789 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006184/0.1805, allocations: 192.6 kB / 339.1 MB, free: 1.602 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006715/0.1872, allocations: 1.402 MB / 340.5 MB, free: 188 kB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.005614/0.1929, allocations: 1.659 MB / 342.1 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001704/0.1946, allocations: 491.6 kB / 342.6 MB, free: 14.03 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004494/0.1951, allocations: 267.2 kB / 342.9 MB, free: 13.77 MB / 298.7 MB Notification: Performance of Backend: time 4.71e-07/0.1951, allocations: 0 / 342.9 MB, free: 13.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003163/0.1983, allocations: 0.8948 MB / 343.8 MB, free: 12.85 MB / 298.7 MB Notification: Performance of SimCode: time 0.004339/0.2027, allocations: 2.486 MB / 346.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of Templates: time 0.03848/0.2412, allocations: 14.51 MB / 360.7 MB, free: 11.82 MB / 314.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