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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.226/2.226, allocations: 194.9 MB / 211.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000481/0.000481, allocations: 8 kB / 264.1 MB, free: 2.508 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3417, allocations: 44.5 MB / 308.6 MB, free: 12.54 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1559/0.4977, allocations: 79.06 MB / 387.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/0.498, allocations: 79.95 kB / 387.7 MB, free: 13.28 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07744/0.5755, allocations: 14.73 MB / 402.4 MB, free: 14.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.205e-06/0.5756, allocations: 4 kB / 402.4 MB, free: 14.47 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.322e-05/0.5756, allocations: 16 kB / 402.5 MB, free: 14.46 MB / 346.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.004847/0.5805, allocations: 1.135 MB / 403.6 MB, free: 13.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.347e-05/0.5806, allocations: 12.03 kB / 403.6 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004597/0.581, allocations: 110.5 kB / 403.7 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003744/0.5814, allocations: 90.95 kB / 403.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009967/0.5824, allocations: 408.7 kB / 404.2 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.565e-05/0.5825, allocations: 58 kB / 404.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002322/0.5828, allocations: 72.33 kB / 404.3 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002993/0.5858, allocations: 0.788 MB / 405.1 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.159e-05/0.5859, allocations: 7.891 kB / 405.1 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001438/0.586, allocations: 32 kB / 405.2 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.535e-05/0.5861, allocations: 16 kB / 405.2 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003673/0.5898, allocations: 0.8509 MB / 406 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008213/0.598, allocations: 2.439 MB / 408.5 MB, free: 8.219 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/0.6005, allocations: 0.7034 MB / 409.2 MB, free: 7.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001509/0.6007, allocations: 13 kB / 409.2 MB, free: 7.488 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002187/0.6029, allocations: 0.5672 MB / 409.7 MB, free: 6.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=89): time 5.801e-06/0.603, allocations: 0 / 409.7 MB, free: 6.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=109): time 0.02237/0.6254, allocations: 4.426 MB / 414.2 MB, free: 2.355 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/0.6255, allocations: 60.41 kB / 414.2 MB, free: 2.281 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006186/0.6261, allocations: 313.2 kB / 414.5 MB, free: 1.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003366/0.6265, allocations: 61.69 kB / 414.6 MB, free: 1.906 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002747/0.6268, allocations: 265 kB / 414.9 MB, free: 1.641 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005825/0.6274, allocations: 370.8 kB / 415.2 MB, free: 1.273 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.6275, allocations: 20 kB / 415.2 MB, free: 1.254 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002149/0.6277, allocations: 382.7 kB / 415.6 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001856/0.6296, allocations: 430.4 kB / 416 MB, free: 464 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2974/0.927, allocations: 0.5073 MB / 416.5 MB, free: 91.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002068/0.9292, allocations: 373.3 kB / 416.9 MB, free: 91.87 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.9292, allocations: 0.5 kB / 416.9 MB, free: 91.87 MB / 346.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.006018/0.9353, allocations: 1.312 MB / 418.2 MB, free: 91.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.874e-05/0.9354, allocations: 8.312 kB / 418.2 MB, free: 91.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.575e-05/0.9354, allocations: 8.047 kB / 418.2 MB, free: 91.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001904/0.9373, allocations: 0.5517 MB / 418.8 MB, free: 91.76 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001641/0.939, allocations: 207.6 kB / 419 MB, free: 91.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005631/0.9447, allocations: 3.23 MB / 422.2 MB, free: 89.4 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002295/0.947, allocations: 242.1 kB / 422.4 MB, free: 89.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001601/0.9472, allocations: 40.16 kB / 422.5 MB, free: 89.4 MB / 346.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.0005915/0.9478, allocations: 220.4 kB / 422.7 MB, free: 89.28 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002221/0.948, allocations: 77.58 kB / 422.8 MB, free: 89.28 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004888/0.9529, allocations: 1.337 MB / 424.1 MB, free: 89.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.953, allocations: 11.47 kB / 424.1 MB, free: 89.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.953, allocations: 0 / 424.1 MB, free: 89.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.58e-05/0.953, allocations: 3.562 kB / 424.1 MB, free: 89.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0075/0.9606, allocations: 2.496 MB / 426.6 MB, free: 88.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.9606, allocations: 2.562 kB / 426.6 MB, free: 88.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001519/0.9622, allocations: 188.2 kB / 426.8 MB, free: 88.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001516/0.9637, allocations: 0.5264 MB / 427.3 MB, free: 88.1 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001677/0.9639, allocations: 40.34 kB / 427.4 MB, free: 88.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005004/0.9689, allocations: 3.071 MB / 430.4 MB, free: 85.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.969, allocations: 6.75 kB / 430.5 MB, free: 85.47 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006383/0.9753, allocations: 1.92 MB / 432.4 MB, free: 84.53 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006174/0.976, allocations: 234.3 kB / 432.6 MB, free: 84.36 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002172/0.9763, allocations: 35.62 kB / 432.6 MB, free: 84.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002243/0.9785, allocations: 250.1 kB / 432.9 MB, free: 84.32 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001516/0.98, allocations: 431.8 kB / 433.3 MB, free: 84.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001505/0.9802, allocations: 46.53 kB / 433.3 MB, free: 84.24 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003832/0.9806, allocations: 256.8 kB / 433.6 MB, free: 84.11 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.9806, allocations: 0 / 433.6 MB, free: 84.11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001183/0.9818, allocations: 253.3 kB / 433.8 MB, free: 84.08 MB / 346.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.006861/0.9887, allocations: 3.08 MB / 436.9 MB, free: 82.01 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004112/0.9929, allocations: 1.225 MB / 438.2 MB, free: 81.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/0.9929, allocations: 0 / 438.2 MB, free: 81.25 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002653/0.9956, allocations: 0.7893 MB / 438.9 MB, free: 80.52 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.9968, allocations: 113.8 kB / 439.1 MB, free: 80.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/1.012, allocations: 6.064 MB / 445.1 MB, free: 74.89 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004664/1.013, allocations: 0.9558 MB / 446.1 MB, free: 74.01 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006149/1.013, allocations: 76.27 kB / 446.1 MB, free: 73.95 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005136/1.014, allocations: 242 kB / 446.4 MB, free: 73.74 MB / 346.7 MB Notification: Performance of SimCode: time 1.213e-06/1.014, allocations: 0 / 446.4 MB, free: 73.74 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06671/1.081, allocations: 20.48 MB / 466.9 MB, free: 54.3 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004971/1.081, allocations: 211.8 kB / 467.1 MB, free: 54.06 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.683/4.764, allocations: 0 / 467.1 MB, free: 54.06 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat