Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.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.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.147/2.147, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003726/0.0003725, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1025, allocations: 44.51 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4179/0.5205, allocations: 83.01 MB / 391.5 MB, free: 18.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.5209, allocations: 81.08 kB / 391.6 MB, free: 18.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09713/0.618, allocations: 22.94 MB / 414.6 MB, free: 13.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.6181, allocations: 0 / 414.6 MB, free: 13.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.894e-05/0.6181, allocations: 19.34 kB / 414.6 MB, free: 13.3 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.005716/0.6239, allocations: 1.355 MB / 415.9 MB, free: 12.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.6239, allocations: 11.75 kB / 415.9 MB, free: 12.43 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004332/0.6244, allocations: 144 kB / 416.1 MB, free: 12.37 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006869/0.6251, allocations: 144.4 kB / 416.2 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001238/0.6263, allocations: 0.5368 MB / 416.8 MB, free: 11.92 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004445/0.6268, allocations: 197.8 kB / 417 MB, free: 11.81 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002668/0.6271, allocations: 106 kB / 417.1 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003572/0.6307, allocations: 1.22 MB / 418.3 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.218e-05/0.6308, allocations: 11.8 kB / 418.3 MB, free: 11.42 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001707/0.631, allocations: 39.72 kB / 418.3 MB, free: 11.42 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.79e-05/0.631, allocations: 30.61 kB / 418.4 MB, free: 11.42 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004652/0.6357, allocations: 1.284 MB / 419.6 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01084/0.6466, allocations: 3.706 MB / 423.3 MB, free: 9.285 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003257/0.6499, allocations: 1.021 MB / 424.4 MB, free: 9.113 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001817/0.6501, allocations: 24.03 kB / 424.4 MB, free: 9.105 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.6502, allocations: 54.62 kB / 424.4 MB, free: 9.062 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 5.26e-06/0.6502, allocations: 0 / 424.4 MB, free: 9.062 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.02342/0.6736, allocations: 5.766 MB / 430.2 MB, free: 7.051 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.6737, allocations: 93.92 kB / 430.3 MB, free: 6.953 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008538/0.6746, allocations: 452.5 kB / 430.7 MB, free: 6.773 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003227/0.6749, allocations: 59.08 kB / 430.8 MB, free: 6.742 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002278/0.6752, allocations: 356.5 kB / 431.2 MB, free: 6.484 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005371/0.6757, allocations: 497 kB / 431.6 MB, free: 6.133 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.6759, allocations: 37.19 kB / 431.7 MB, free: 6.129 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.676, allocations: 371.7 kB / 432 MB, free: 5.789 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001876/0.6779, allocations: 0.5406 MB / 432.6 MB, free: 5.715 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00197/0.6799, allocations: 0.6671 MB / 433.2 MB, free: 5.547 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001745/0.6817, allocations: 486.8 kB / 433.7 MB, free: 5.5 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.6817, allocations: 7.875 kB / 433.7 MB, free: 5.496 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.005572/0.6873, allocations: 1.669 MB / 435.4 MB, free: 4.656 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.254e-05/0.6874, allocations: 4 kB / 435.4 MB, free: 4.652 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.04e-05/0.6874, allocations: 7.984 kB / 435.4 MB, free: 4.645 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002677/0.6901, allocations: 0.8099 MB / 436.2 MB, free: 4.023 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001976/0.6921, allocations: 255.2 kB / 436.5 MB, free: 3.781 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003364/0.6955, allocations: 1.876 MB / 438.3 MB, free: 2.191 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002379/0.6979, allocations: 210 kB / 438.5 MB, free: 2.008 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000276/0.6983, allocations: 60.16 kB / 438.6 MB, free: 1.961 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 ($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,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0008274/0.6991, allocations: 270.4 kB / 438.9 MB, free: 1.762 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003247/0.6994, allocations: 90.88 kB / 439 MB, free: 1.672 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006151/0.7056, allocations: 1.925 MB / 440.9 MB, free: 28 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-05/0.7057, allocations: 12 kB / 440.9 MB, free: 16 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.7057, allocations: 4 kB / 440.9 MB, free: 12 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.617e-05/0.7057, allocations: 7.969 kB / 440.9 MB, free: 4 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01083/0.7166, allocations: 3.193 MB / 444.1 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-05/0.7167, allocations: 3.953 kB / 444.1 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002346/0.719, allocations: 267.8 kB / 444.4 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002932/0.722, allocations: 0.7509 MB / 445.1 MB, free: 11.74 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003081/0.7223, allocations: 47.94 kB / 445.2 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00376/0.7261, allocations: 1.827 MB / 447 MB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.7261, allocations: 0 / 447 MB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00926/0.7354, allocations: 2.485 MB / 449.5 MB, free: 7.27 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/0.7365, allocations: 299.8 kB / 449.8 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003251/0.7368, allocations: 40 kB / 449.8 MB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002163/0.739, allocations: 215.8 kB / 450 MB, free: 6.707 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007813/0.7398, allocations: 232.8 kB / 450.2 MB, free: 6.477 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002106/0.74, allocations: 67.94 kB / 450.3 MB, free: 6.41 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008121/0.7409, allocations: 358.8 kB / 450.7 MB, free: 6.059 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.7409, allocations: 4 kB / 450.7 MB, free: 6.055 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001543/0.7424, allocations: 324 kB / 451 MB, free: 5.738 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * 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.01189/0.7543, allocations: 3.392 MB / 454.4 MB, free: 2.293 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00817/0.7626, allocations: 1.542 MB / 455.9 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/0.7626, allocations: 0 / 455.9 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005115/0.7678, allocations: 0.8367 MB / 456.8 MB, free: 15.89 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002075/0.7699, allocations: 143.3 kB / 456.9 MB, free: 15.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04017/0.8101, allocations: 8.616 MB / 465.5 MB, free: 6.945 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00118/0.8113, allocations: 1.055 MB / 466.6 MB, free: 5.863 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001492/0.8129, allocations: 351.3 kB / 466.9 MB, free: 5.52 MB / 346.7 MB Notification: Performance of SimCode: time 1.313e-06/0.8129, allocations: 0 / 466.9 MB, free: 5.52 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.722/4.535, allocations: 22.51 MB / 489.4 MB, free: 14.98 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat