Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.991/1.991, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003624/0.0003624, allocations: 12 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1155, allocations: 44.5 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4587/0.5742, allocations: 79.06 MB / 387.6 MB, free: 14.93 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003091/0.5746, allocations: 69.91 kB / 387.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09056/0.6652, allocations: 14.74 MB / 402.4 MB, free: 12.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.436e-06/0.6653, allocations: 0 / 402.4 MB, free: 12.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.333e-05/0.6653, allocations: 19.53 kB / 402.4 MB, free: 12.62 MB / 314.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.004143/0.6695, allocations: 1.132 MB / 403.6 MB, free: 11.88 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.6695, allocations: 7.75 kB / 403.6 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002544/0.6698, allocations: 119.3 kB / 403.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002863/0.6701, allocations: 85.72 kB / 403.8 MB, free: 11.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007689/0.6709, allocations: 415.4 kB / 404.2 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.815e-05/0.671, allocations: 53.62 kB / 404.2 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001782/0.6711, allocations: 72.47 kB / 404.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002415/0.6736, allocations: 0.7911 MB / 405.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.181e-05/0.6736, allocations: 7.844 kB / 405.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.6738, allocations: 24.25 kB / 405.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/0.6738, allocations: 15.53 kB / 405.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003079/0.6769, allocations: 0.8597 MB / 406 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006658/0.6836, allocations: 2.441 MB / 408.4 MB, free: 9.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002064/0.6857, allocations: 0.6976 MB / 409.1 MB, free: 9.613 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001289/0.6859, allocations: 12.5 kB / 409.1 MB, free: 9.613 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001802/0.6877, allocations: 0.5588 MB / 409.7 MB, free: 9.414 MB / 314.7 MB Notification: Performance of pre-optimization done (n=89): time 4.658e-06/0.6877, allocations: 0 / 409.7 MB, free: 9.414 MB / 314.7 MB Notification: Performance of matching and sorting (n=109): time 0.01859/0.7063, allocations: 4.43 MB / 414.1 MB, free: 7.785 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.7064, allocations: 63.47 kB / 414.2 MB, free: 7.719 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004939/0.7069, allocations: 316.8 kB / 414.5 MB, free: 7.574 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002474/0.7072, allocations: 56.5 kB / 414.6 MB, free: 7.539 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001776/0.7074, allocations: 303.8 kB / 414.9 MB, free: 7.309 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003689/0.7077, allocations: 378.2 kB / 415.2 MB, free: 7.043 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.522e-05/0.7078, allocations: 21.25 kB / 415.2 MB, free: 7.043 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.054e-05/0.7079, allocations: 348.7 kB / 415.6 MB, free: 6.715 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001537/0.7095, allocations: 431.5 kB / 416 MB, free: 6.656 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001608/0.7111, allocations: 0.5144 MB / 416.5 MB, free: 6.52 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00138/0.7125, allocations: 373.3 kB / 416.9 MB, free: 6.477 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.7125, allocations: 3.938 kB / 416.9 MB, free: 6.477 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005019/0.7176, allocations: 1.286 MB / 418.2 MB, free: 6.195 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/0.7176, allocations: 7.844 kB / 418.2 MB, free: 6.195 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.924e-05/0.7177, allocations: 3.984 kB / 418.2 MB, free: 6.191 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001623/0.7193, allocations: 0.5629 MB / 418.7 MB, free: 6.031 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/0.7208, allocations: 200.7 kB / 418.9 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0055/0.7263, allocations: 3.243 MB / 422.2 MB, free: 3.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002253/0.7286, allocations: 232.9 kB / 422.4 MB, free: 3.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/0.7288, allocations: 39.55 kB / 422.5 MB, free: 3.34 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 (115): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0005743/0.7294, allocations: 220 kB / 422.7 MB, free: 3.211 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/0.7296, allocations: 74.06 kB / 422.7 MB, free: 3.176 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004631/0.7342, allocations: 1.338 MB / 424.1 MB, free: 2.809 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/0.7343, allocations: 11.5 kB / 424.1 MB, free: 2.809 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.7343, allocations: 0 / 424.1 MB, free: 2.809 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.409e-05/0.7343, allocations: 11.97 kB / 424.1 MB, free: 2.797 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007103/0.7414, allocations: 2.496 MB / 426.6 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/0.7415, allocations: 0 / 426.6 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001471/0.743, allocations: 184.8 kB / 426.8 MB, free: 1.703 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001483/0.7445, allocations: 0.5315 MB / 427.3 MB, free: 1.539 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001436/0.7447, allocations: 40.45 kB / 427.3 MB, free: 1.527 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005107/0.7498, allocations: 3.072 MB / 430.4 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.503e-06/0.7498, allocations: 3.938 kB / 430.4 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006851/0.7567, allocations: 1.922 MB / 432.3 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006801/0.7574, allocations: 225.4 kB / 432.6 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002197/0.7577, allocations: 37.94 kB / 432.6 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002303/0.76, allocations: 249.6 kB / 432.8 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001657/0.7617, allocations: 444 kB / 433.3 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001578/0.7618, allocations: 44.14 kB / 433.3 MB, free: 13.89 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004748/0.7623, allocations: 252.2 kB / 433.6 MB, free: 13.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7623, allocations: 0 / 433.6 MB, free: 13.77 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001333/0.7637, allocations: 243.8 kB / 433.8 MB, free: 13.77 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (90): * Single equations (assignments): 87 * 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 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.007616/0.7713, allocations: 3.082 MB / 436.9 MB, free: 12.04 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004375/0.7758, allocations: 1.231 MB / 438.1 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/0.7758, allocations: 3.875 kB / 438.1 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002606/0.7784, allocations: 0.7316 MB / 438.9 MB, free: 10.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.7797, allocations: 108.2 kB / 439 MB, free: 10.92 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02264/0.8023, allocations: 6.117 MB / 445.1 MB, free: 4.699 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001678/0.8041, allocations: 0.9478 MB / 446 MB, free: 3.723 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001196/0.8053, allocations: 247.3 kB / 446.3 MB, free: 3.48 MB / 330.7 MB Notification: Performance of SimCode: time 1.773e-06/0.8054, allocations: 0 / 446.3 MB, free: 3.48 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.089/3.894, allocations: 19.42 MB / 465.7 MB, free: 16 kB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat