Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.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.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.747/1.747, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003902/0.0003903, allocations: 8 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09804/0.09848, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3906/0.4891, allocations: 77.85 MB / 350 MB, free: 11.69 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.4895, allocations: 78.02 kB / 350 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1128/0.6023, allocations: 23.04 MB / 373.1 MB, free: 7.965 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.6024, allocations: 4 kB / 373.1 MB, free: 7.961 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.56e-05/0.6025, allocations: 24 kB / 373.1 MB, free: 7.938 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.006469/0.609, allocations: 1.38 MB / 374.5 MB, free: 6.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/0.6091, allocations: 8.031 kB / 374.5 MB, free: 6.562 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006685/0.6097, allocations: 149.5 kB / 374.6 MB, free: 6.469 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009668/0.6107, allocations: 134.6 kB / 374.8 MB, free: 6.336 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001913/0.6127, allocations: 0.5453 MB / 375.3 MB, free: 5.828 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006284/0.6134, allocations: 201.6 kB / 375.5 MB, free: 5.648 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006145/0.614, allocations: 106.3 kB / 375.6 MB, free: 5.578 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005151/0.6192, allocations: 1.253 MB / 376.9 MB, free: 4.672 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001072/0.6193, allocations: 15.08 kB / 376.9 MB, free: 4.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001855/0.6195, allocations: 38.69 kB / 376.9 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.605e-05/0.6196, allocations: 24 kB / 376.9 MB, free: 4.629 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006331/0.6259, allocations: 1.356 MB / 378.3 MB, free: 3.629 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01416/0.6402, allocations: 3.702 MB / 382 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004019/0.6442, allocations: 1.034 MB / 383 MB, free: 15.87 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002111/0.6445, allocations: 25.28 kB / 383.1 MB, free: 15.85 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.418e-05/0.6446, allocations: 54.19 kB / 383.1 MB, free: 15.8 MB / 314.7 MB Notification: Performance of pre-optimization done (n=129): time 4.909e-06/0.6446, allocations: 0 / 383.1 MB, free: 15.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.02729/0.6719, allocations: 5.88 MB / 389 MB, free: 10.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.095e-05/0.672, allocations: 94.42 kB / 389.1 MB, free: 10.44 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.6732, allocations: 486.1 kB / 389.6 MB, free: 9.957 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004584/0.6737, allocations: 61.7 kB / 389.6 MB, free: 9.891 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003688/0.6741, allocations: 371.7 kB / 390 MB, free: 9.523 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008757/0.675, allocations: 485.2 kB / 390.5 MB, free: 9.043 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001741/0.6752, allocations: 35.94 kB / 390.5 MB, free: 9.008 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.6754, allocations: 362.8 kB / 390.9 MB, free: 8.645 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003125/0.6785, allocations: 0.57 MB / 391.4 MB, free: 8.074 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002767/0.6814, allocations: 0.7114 MB / 392.1 MB, free: 7.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002238/0.6837, allocations: 0.5136 MB / 392.6 MB, free: 6.828 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.6837, allocations: 0 / 392.6 MB, free: 6.828 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.007517/0.6913, allocations: 1.908 MB / 394.6 MB, free: 4.906 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.425e-05/0.6913, allocations: 8 kB / 394.6 MB, free: 4.898 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.6914, allocations: 0 / 394.6 MB, free: 4.898 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00372/0.6951, allocations: 1.005 MB / 395.6 MB, free: 3.887 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00227/0.6974, allocations: 259.6 kB / 395.8 MB, free: 3.633 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00442/0.7019, allocations: 1.986 MB / 397.8 MB, free: 1.594 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002694/0.7046, allocations: 211.9 kB / 398 MB, free: 1.387 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004377/0.7051, allocations: 63.97 kB / 398.1 MB, free: 1.324 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 (bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 127 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0009705/0.7061, allocations: 261.6 kB / 398.3 MB, free: 1.059 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003856/0.7065, allocations: 98.81 kB / 398.4 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004417/0.707, allocations: 137.2 kB / 398.6 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.825e-05/0.707, allocations: 12 kB / 398.6 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/0.707, allocations: 0 / 398.6 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.498e-05/0.7071, allocations: 7.969 kB / 398.6 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01285/0.7199, allocations: 3.308 MB / 401.9 MB, free: 13.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.082e-05/0.72, allocations: 4.062 kB / 401.9 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002431/0.7225, allocations: 263.6 kB / 402.1 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00342/0.7259, allocations: 0.9496 MB / 403.1 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003788/0.7263, allocations: 51.94 kB / 403.1 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003907/0.7303, allocations: 1.917 MB / 405.1 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.7303, allocations: 4.094 kB / 405.1 MB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01032/0.7406, allocations: 2.696 MB / 407.8 MB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/0.7417, allocations: 307.8 kB / 408.1 MB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003262/0.7421, allocations: 36 kB / 408.1 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002156/0.7442, allocations: 219.8 kB / 408.3 MB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008389/0.7451, allocations: 224.8 kB / 408.5 MB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002173/0.7453, allocations: 63.94 kB / 408.6 MB, free: 6.586 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008869/0.7462, allocations: 378.8 kB / 409 MB, free: 6.215 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.7463, allocations: 0 / 409 MB, free: 6.215 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001783/0.748, allocations: 343.9 kB / 409.3 MB, free: 5.879 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 92 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.01151/0.7596, allocations: 3.486 MB / 412.8 MB, free: 2.352 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006143/0.7658, allocations: 1.465 MB / 414.3 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.7659, allocations: 0 / 414.3 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003571/0.7694, allocations: 0.8248 MB / 415.1 MB, free: 64 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.7711, allocations: 136 kB / 415.2 MB, free: 15.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03125/0.8024, allocations: 9.023 MB / 424.2 MB, free: 6.719 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008615/0.8033, allocations: 1.047 MB / 425.3 MB, free: 5.648 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001194/0.8045, allocations: 359.3 kB / 425.6 MB, free: 5.297 MB / 346.7 MB Notification: Performance of SimCode: time 1.162e-06/0.8046, allocations: 0 / 425.6 MB, free: 5.297 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.485/4.289, allocations: 22.1 MB / 447.7 MB, free: 102.5 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat