Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001378/0.001378, allocations: 200.8 kB / 17.43 MB, free: 4.27 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007771/0.0007771, allocations: 95.86 kB / 299.8 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002334/0.0002334, allocations: 4 kB / 360.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.1991, allocations: 51.42 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004683/0.2038, allocations: 3.846 MB / 415.9 MB, free: 22.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002695/0.2066, allocations: 1.768 MB / 417.7 MB, free: 20.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002912/0.2069, allocations: 13.28 kB / 417.7 MB, free: 20.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003573/0.2073, allocations: 107.2 kB / 417.8 MB, free: 20.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005596/0.2078, allocations: 226.4 kB / 418 MB, free: 19.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009996/0.2088, allocations: 367.4 kB / 418.4 MB, free: 19.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001039/0.2099, allocations: 1.088 MB / 419.5 MB, free: 18.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004311/0.2103, allocations: 234.9 kB / 419.7 MB, free: 18.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006609/0.211, allocations: 442.4 kB / 420.1 MB, free: 17.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005755/0.2116, allocations: 486 kB / 420.6 MB, free: 17.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001354/0.2118, allocations: 48 kB / 420.6 MB, free: 17.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003451/0.2121, allocations: 112 kB / 420.7 MB, free: 17.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002432/0.2124, allocations: 179.3 kB / 420.9 MB, free: 16.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004108/0.2128, allocations: 439.5 kB / 421.4 MB, free: 16.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009306/0.2137, allocations: 1.025 MB / 422.4 MB, free: 15.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2138, allocations: 0 / 422.4 MB, free: 15.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2138, allocations: 0 / 422.4 MB, free: 15.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.2138, allocations: 4 kB / 422.4 MB, free: 15.46 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.003659/0.2175, allocations: 1.248 MB / 423.6 MB, free: 14.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.2175, allocations: 12.03 kB / 423.6 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006304/0.2182, allocations: 119.9 kB / 423.8 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007109/0.2189, allocations: 453.5 kB / 424.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.256e-05/0.219, allocations: 54.38 kB / 424.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001638/0.2191, allocations: 72.38 kB / 424.3 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002117/0.2213, allocations: 0.8116 MB / 425.1 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.868e-05/0.2213, allocations: 7.906 kB / 425.1 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001144/0.2215, allocations: 31.88 kB / 425.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.2215, allocations: 19.94 kB / 425.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002506/0.224, allocations: 0.8744 MB / 426.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005033/0.229, allocations: 2.47 MB / 428.5 MB, free: 9.078 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002045/0.2311, allocations: 0.7478 MB / 429.3 MB, free: 8.316 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001262/0.2324, allocations: 472.2 kB / 429.7 MB, free: 7.848 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.372e-05/0.2325, allocations: 16.98 kB / 429.8 MB, free: 7.832 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001476/0.234, allocations: 0.5516 MB / 430.3 MB, free: 7.266 MB / 298.7 MB Notification: Performance of pre-optimization done (n=89): time 3.597e-06/0.234, allocations: 4 kB / 430.3 MB, free: 7.262 MB / 298.7 MB Notification: Performance of matching and sorting (n=109): time 0.01015/0.2441, allocations: 4.357 MB / 434.7 MB, free: 2.781 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.349e-05/0.2442, allocations: 60.41 kB / 434.7 MB, free: 2.707 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003315/0.2445, allocations: 409.9 kB / 435.1 MB, free: 2.301 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.454e-05/0.2446, allocations: 57.69 kB / 435.2 MB, free: 2.238 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.2447, allocations: 277 kB / 435.5 MB, free: 1.961 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00017/0.2449, allocations: 366.8 kB / 435.8 MB, free: 1.598 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.227e-05/0.245, allocations: 20 kB / 435.8 MB, free: 1.578 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.929e-05/0.245, allocations: 382.7 kB / 436.2 MB, free: 1.195 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008094/0.2458, allocations: 426.4 kB / 436.6 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008462/0.2467, allocations: 0.5305 MB / 437.2 MB, free: 236 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.2483, allocations: 0.7713 MB / 437.9 MB, free: 15.44 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2483, allocations: 0 / 437.9 MB, free: 15.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.0029/0.2512, allocations: 1.303 MB / 439.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.2512, allocations: 4 kB / 439.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.2512, allocations: 4 kB / 439.2 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000974/0.2522, allocations: 498.2 kB / 439.7 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007685/0.253, allocations: 211.7 kB / 439.9 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003724/0.2567, allocations: 3.263 MB / 443.2 MB, free: 9.957 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.2579, allocations: 235.8 kB / 443.4 MB, free: 9.727 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.715e-05/0.258, allocations: 32 kB / 443.5 MB, free: 9.695 MB / 314.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 (114): * Single equations (assignments): 111 * 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,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003469/0.2583, allocations: 237.6 kB / 443.7 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.2584, allocations: 75.09 kB / 443.8 MB, free: 9.379 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001979/0.2586, allocations: 107.2 kB / 443.9 MB, free: 9.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.2587, allocations: 12 kB / 443.9 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.2587, allocations: 0 / 443.9 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.2587, allocations: 3.984 kB / 443.9 MB, free: 9.254 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004832/0.2635, allocations: 2.504 MB / 446.4 MB, free: 6.645 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.2635, allocations: 0 / 446.4 MB, free: 6.645 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009906/0.2645, allocations: 188 kB / 446.6 MB, free: 6.461 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000857/0.2654, allocations: 478.2 kB / 447 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.57e-05/0.2655, allocations: 35.97 kB / 447.1 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003137/0.2686, allocations: 3.085 MB / 450.2 MB, free: 2.684 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.2687, allocations: 8.047 kB / 450.2 MB, free: 2.676 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003693/0.2724, allocations: 1.844 MB / 452 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003364/0.2727, allocations: 236.1 kB / 452.2 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.2728, allocations: 32 kB / 452.3 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001255/0.2741, allocations: 279.7 kB / 452.5 MB, free: 236 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008841/0.275, allocations: 368.4 kB / 452.9 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.285e-05/0.2751, allocations: 51.83 kB / 453 MB, free: 15.82 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002921/0.2754, allocations: 271.2 kB / 453.2 MB, free: 15.55 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2754, allocations: 0 / 453.2 MB, free: 15.55 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007408/0.2762, allocations: 255.9 kB / 453.5 MB, free: 15.3 MB / 330.7 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,7), (1,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009057/0.2771, allocations: 445.3 kB / 453.9 MB, free: 14.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002518/0.2796, allocations: 1.184 MB / 455.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.2796, allocations: 0 / 455.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001527/0.2811, allocations: 0.7743 MB / 455.9 MB, free: 12.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008766/0.282, allocations: 125.9 kB / 456 MB, free: 12.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003892/0.2859, allocations: 2.516 MB / 458.5 MB, free: 10.3 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005103/0.2865, allocations: 0.944 MB / 459.4 MB, free: 9.324 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003692/0.2868, allocations: 81.72 kB / 459.5 MB, free: 9.242 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001926/0.287, allocations: 63.41 kB / 459.6 MB, free: 9.18 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.287, allocations: 4 kB / 459.6 MB, free: 9.176 MB / 330.7 MB Notification: Performance of Templates: time 0.02342/0.3105, allocations: 15.62 MB / 475.2 MB, free: 9.621 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches