Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.829/1.829, allocations: 171.2 MB / 186.1 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004136/0.0004138, allocations: 8 kB / 233.4 MB, free: 180 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08585/0.0863, allocations: 38.78 MB / 272.1 MB, free: 9.316 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.392/0.4783, allocations: 77.85 MB / 350 MB, free: 4.562 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002929/0.4787, allocations: 71.95 kB / 350.1 MB, free: 4.492 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1139/0.5926, allocations: 23.06 MB / 373.1 MB, free: 13.37 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.945e-06/0.5927, allocations: 0 / 373.1 MB, free: 13.37 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.464e-05/0.5928, allocations: 20 kB / 373.1 MB, free: 13.35 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.005613/0.5984, allocations: 1.376 MB / 374.5 MB, free: 11.92 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/0.5985, allocations: 12.03 kB / 374.5 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005383/0.5991, allocations: 156 kB / 374.7 MB, free: 11.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007863/0.5999, allocations: 134.6 kB / 374.8 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001642/0.6015, allocations: 0.5529 MB / 375.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005271/0.6021, allocations: 191.1 kB / 375.5 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000349/0.6025, allocations: 107.9 kB / 375.6 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004391/0.6069, allocations: 1.255 MB / 376.9 MB, free: 9.438 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.71e-05/0.607, allocations: 7.906 kB / 376.9 MB, free: 9.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001823/0.6072, allocations: 40 kB / 376.9 MB, free: 9.391 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.915e-05/0.6072, allocations: 20 kB / 377 MB, free: 9.371 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005616/0.6129, allocations: 1.366 MB / 378.3 MB, free: 8.008 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0121/0.625, allocations: 3.693 MB / 382 MB, free: 4.152 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00371/0.6288, allocations: 1.041 MB / 383.1 MB, free: 3.102 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000168/0.629, allocations: 21.3 kB / 383.1 MB, free: 3.082 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.93e-05/0.6291, allocations: 51.88 kB / 383.1 MB, free: 3.023 MB / 314.7 MB Notification: Performance of pre-optimization done (n=129): time 4.99e-06/0.6291, allocations: 3.938 kB / 383.1 MB, free: 3.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.02726/0.6563, allocations: 5.876 MB / 389 MB, free: 12.98 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.864e-05/0.6565, allocations: 98.36 kB / 389.1 MB, free: 12.87 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001162/0.6577, allocations: 482.1 kB / 389.6 MB, free: 12.39 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004366/0.6581, allocations: 65.7 kB / 389.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003847/0.6585, allocations: 333.2 kB / 390 MB, free: 11.99 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000911/0.6594, allocations: 485.2 kB / 390.4 MB, free: 11.51 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.6597, allocations: 28 kB / 390.5 MB, free: 11.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002873/0.66, allocations: 398.7 kB / 390.9 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002373/0.6623, allocations: 0.57 MB / 391.4 MB, free: 10.52 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002705/0.6651, allocations: 0.7075 MB / 392.1 MB, free: 9.785 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002241/0.6674, allocations: 0.5135 MB / 392.7 MB, free: 9.273 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/0.6674, allocations: 0 / 392.7 MB, free: 9.273 MB / 330.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.008033/0.6755, allocations: 1.943 MB / 394.6 MB, free: 7.316 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.536e-05/0.6756, allocations: 6.031 kB / 394.6 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.6756, allocations: 4 kB / 394.6 MB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003792/0.6794, allocations: 1.005 MB / 395.6 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002254/0.6817, allocations: 263.6 kB / 395.9 MB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004461/0.6862, allocations: 1.986 MB / 397.9 MB, free: 4 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002652/0.6889, allocations: 203.9 kB / 398.1 MB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003885/0.6894, allocations: 63.97 kB / 398.1 MB, free: 3.738 MB / 330.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.0009166/0.6903, allocations: 261.6 kB / 398.4 MB, free: 3.473 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003988/0.6907, allocations: 90.88 kB / 398.5 MB, free: 3.383 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004673/0.6912, allocations: 145.2 kB / 398.6 MB, free: 3.238 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.062e-05/0.6912, allocations: 12 kB / 398.6 MB, free: 3.227 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.6913, allocations: 0 / 398.6 MB, free: 3.227 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.197e-05/0.6913, allocations: 7.969 kB / 398.6 MB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01272/0.704, allocations: 3.312 MB / 401.9 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.329e-05/0.7041, allocations: 0 / 401.9 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002442/0.7065, allocations: 259.8 kB / 402.2 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003639/0.7102, allocations: 0.9536 MB / 403.1 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005263/0.7108, allocations: 51.94 kB / 403.2 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004416/0.7153, allocations: 1.921 MB / 405.1 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.7153, allocations: 0 / 405.1 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01119/0.7265, allocations: 2.696 MB / 407.8 MB, free: 9.852 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/0.7277, allocations: 303.8 kB / 408.1 MB, free: 9.535 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003589/0.7281, allocations: 36 kB / 408.1 MB, free: 9.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002291/0.7304, allocations: 219.8 kB / 408.4 MB, free: 9.285 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008562/0.7313, allocations: 228.8 kB / 408.6 MB, free: 9.062 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002323/0.7315, allocations: 63.94 kB / 408.6 MB, free: 9 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008895/0.7324, allocations: 378.8 kB / 409 MB, free: 8.629 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7324, allocations: 3.938 kB / 409 MB, free: 8.625 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001836/0.7343, allocations: 343.9 kB / 409.4 MB, free: 8.289 MB / 346.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.01149/0.7458, allocations: 3.486 MB / 412.8 MB, free: 4.762 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005812/0.7517, allocations: 1.469 MB / 414.3 MB, free: 3.293 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.7517, allocations: 0 / 414.3 MB, free: 3.293 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003574/0.7553, allocations: 0.8287 MB / 415.1 MB, free: 2.465 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001632/0.757, allocations: 132.4 kB / 415.3 MB, free: 2.332 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.293/1.05, allocations: 8.965 MB / 424.2 MB, free: 103.3 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008333/1.051, allocations: 1.056 MB / 425.3 MB, free: 102.6 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001126/1.052, allocations: 139.5 kB / 425.4 MB, free: 102.6 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009146/1.053, allocations: 343.3 kB / 425.8 MB, free: 102.6 MB / 346.7 MB Notification: Performance of SimCode: time 1.342e-06/1.053, allocations: 0 / 425.8 MB, free: 102.6 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08446/1.138, allocations: 26.15 MB / 451.9 MB, free: 96.56 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000227/1.138, allocations: 219.3 kB / 452.1 MB, free: 96.31 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.736/4.874, allocations: 0 / 452.1 MB, free: 96.31 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat