Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.751/1.751, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003746/0.0003747, allocations: 8 kB / 233.3 MB, free: 2.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09704/0.09746, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3787/0.4762, allocations: 73.74 MB / 345.8 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002914/0.4766, allocations: 77.81 kB / 345.9 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07409/0.5507, allocations: 14.67 MB / 360.6 MB, free: 3.074 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.5507, allocations: 7.938 kB / 360.6 MB, free: 3.066 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.233e-05/0.5508, allocations: 12 kB / 360.6 MB, free: 3.055 MB / 282.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.004935/0.5557, allocations: 1.144 MB / 361.8 MB, free: 1.91 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.798e-05/0.5558, allocations: 12.03 kB / 361.8 MB, free: 1.898 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003218/0.5562, allocations: 110 kB / 361.9 MB, free: 1.824 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003541/0.5565, allocations: 87.02 kB / 362 MB, free: 1.738 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009511/0.5575, allocations: 423.2 kB / 362.4 MB, free: 1.336 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.809e-05/0.5576, allocations: 55.75 kB / 362.4 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002025/0.5578, allocations: 73.19 kB / 362.5 MB, free: 1.254 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002847/0.5607, allocations: 0.8078 MB / 363.3 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.054e-05/0.5608, allocations: 11.89 kB / 363.3 MB, free: 0.668 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.5609, allocations: 29.5 kB / 363.3 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.621e-05/0.5609, allocations: 23.94 kB / 363.4 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00347/0.5644, allocations: 0.8884 MB / 364.3 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007502/0.572, allocations: 2.445 MB / 366.7 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002472/0.5745, allocations: 0.7365 MB / 367.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001218/0.5747, allocations: 9 kB / 367.4 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001948/0.5766, allocations: 0.5608 MB / 368 MB, free: 13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 4.458e-06/0.5766, allocations: 0 / 368 MB, free: 13 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.02001/0.5967, allocations: 4.569 MB / 372.6 MB, free: 9.172 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.5968, allocations: 64.41 kB / 372.6 MB, free: 9.098 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006148/0.5974, allocations: 344.5 kB / 373 MB, free: 8.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002078/0.5976, allocations: 57.5 kB / 373 MB, free: 8.777 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000252/0.5979, allocations: 313.8 kB / 373.3 MB, free: 8.516 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004628/0.5984, allocations: 361 kB / 373.7 MB, free: 8.211 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.656e-05/0.5985, allocations: 21.25 kB / 373.7 MB, free: 8.207 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.5987, allocations: 351.1 kB / 374.1 MB, free: 7.871 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001706/0.6004, allocations: 447.5 kB / 374.5 MB, free: 7.578 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001792/0.6022, allocations: 0.5377 MB / 375 MB, free: 7.188 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00152/0.6037, allocations: 390.5 kB / 375.4 MB, free: 6.938 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.6038, allocations: 0 / 375.4 MB, free: 6.938 MB / 298.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005559/0.6093, allocations: 1.462 MB / 376.9 MB, free: 5.832 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.6094, allocations: 8 kB / 376.9 MB, free: 5.824 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.6094, allocations: 0 / 376.9 MB, free: 5.824 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002002/0.6114, allocations: 0.6824 MB / 377.6 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001663/0.6131, allocations: 218 kB / 377.8 MB, free: 5.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006317/0.6195, allocations: 3.296 MB / 381.1 MB, free: 1.945 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002335/0.6218, allocations: 237.1 kB / 381.3 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/0.622, allocations: 43.36 kB / 381.3 MB, free: 1.699 MB / 298.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.0005773/0.6226, allocations: 224.1 kB / 381.6 MB, free: 1.527 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001979/0.6228, allocations: 75.09 kB / 381.6 MB, free: 1.453 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002942/0.6231, allocations: 113.4 kB / 381.7 MB, free: 1.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.5e-05/0.6231, allocations: 12 kB / 381.8 MB, free: 1.398 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.6232, allocations: 0 / 381.8 MB, free: 1.398 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/0.6232, allocations: 3.984 kB / 381.8 MB, free: 1.395 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007972/0.6312, allocations: 2.634 MB / 384.4 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.6312, allocations: 4 kB / 384.4 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001543/0.6328, allocations: 180 kB / 384.6 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001897/0.6347, allocations: 0.6622 MB / 385.2 MB, free: 13.99 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/0.6349, allocations: 31.97 kB / 385.3 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005794/0.6407, allocations: 3.139 MB / 388.4 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.6407, allocations: 4 kB / 388.4 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007383/0.6481, allocations: 2.059 MB / 390.5 MB, free: 8.48 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006664/0.6489, allocations: 236.1 kB / 390.7 MB, free: 8.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002254/0.6491, allocations: 32 kB / 390.7 MB, free: 8.199 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002351/0.6515, allocations: 255.8 kB / 391 MB, free: 7.949 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001781/0.6533, allocations: 432 kB / 391.4 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001688/0.6535, allocations: 47.95 kB / 391.5 MB, free: 7.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005018/0.654, allocations: 263.2 kB / 391.7 MB, free: 7.219 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.654, allocations: 0 / 391.7 MB, free: 7.219 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00126/0.6553, allocations: 252 kB / 392 MB, free: 6.973 MB / 314.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 (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.008079/0.6633, allocations: 3.18 MB / 395.1 MB, free: 3.711 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00441/0.6678, allocations: 1.192 MB / 396.3 MB, free: 2.508 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.6679, allocations: 4.062 kB / 396.3 MB, free: 2.504 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002584/0.6705, allocations: 0.727 MB / 397.1 MB, free: 1.766 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.6717, allocations: 111.4 kB / 397.2 MB, free: 1.656 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0184/0.6901, allocations: 6.363 MB / 403.5 MB, free: 11.18 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007217/0.6909, allocations: 0.9478 MB / 404.5 MB, free: 10.2 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007477/0.6916, allocations: 251.3 kB / 404.7 MB, free: 9.957 MB / 330.7 MB Notification: Performance of SimCode: time 1.563e-06/0.6916, allocations: 0 / 404.7 MB, free: 9.957 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.085/3.777, allocations: 19.03 MB / 423.8 MB, free: 6.879 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat