Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.024/2.024, allocations: 194.9 MB / 211.1 MB, free: 8.762 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003641/0.0003641, allocations: 8 kB / 264.1 MB, free: 3.684 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.35, allocations: 44.5 MB / 308.6 MB, free: 12.81 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2265/0.5766, allocations: 83 MB / 391.6 MB, free: 9.688 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003683/0.577, allocations: 75.89 kB / 391.6 MB, free: 9.613 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1207/0.6977, allocations: 22.94 MB / 414.6 MB, free: 2.605 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.584e-06/0.6978, allocations: 3.938 kB / 414.6 MB, free: 2.602 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.386e-05/0.6979, allocations: 24 kB / 414.6 MB, free: 2.578 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.005655/0.7036, allocations: 1.356 MB / 416 MB, free: 1.168 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.7036, allocations: 12.03 kB / 416 MB, free: 1.156 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005829/0.7042, allocations: 152 kB / 416.1 MB, free: 1 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008678/0.7051, allocations: 138.5 kB / 416.3 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/0.7071, allocations: 0.5412 MB / 416.8 MB, free: 284 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000645/0.7078, allocations: 199.1 kB / 417 MB, free: 68 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2734/0.9812, allocations: 98.42 kB / 417.1 MB, free: 88.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005396/0.9866, allocations: 1.22 MB / 418.3 MB, free: 88.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.25e-05/0.9868, allocations: 13.48 kB / 418.3 MB, free: 88.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001808/0.987, allocations: 37.25 kB / 418.4 MB, free: 88.87 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-05/0.987, allocations: 25.36 kB / 418.4 MB, free: 88.87 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0058/0.9928, allocations: 1.294 MB / 419.7 MB, free: 88.86 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01287/1.006, allocations: 3.688 MB / 423.4 MB, free: 87.87 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003556/1.009, allocations: 1.018 MB / 424.4 MB, free: 87.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002574/1.01, allocations: 24.2 kB / 424.4 MB, free: 87.81 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.398e-05/1.01, allocations: 48.53 kB / 424.5 MB, free: 87.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=135): time 4.719e-06/1.01, allocations: 0 / 424.5 MB, free: 87.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=147): time 0.02483/1.035, allocations: 5.78 MB / 430.2 MB, free: 85.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/1.035, allocations: 92.98 kB / 430.3 MB, free: 85.37 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008368/1.036, allocations: 450.7 kB / 430.8 MB, free: 85.17 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004071/1.036, allocations: 63.88 kB / 430.8 MB, free: 85.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002434/1.036, allocations: 314.5 kB / 431.1 MB, free: 84.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005661/1.037, allocations: 0.5002 MB / 431.6 MB, free: 84.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/1.037, allocations: 26.06 kB / 431.7 MB, free: 84.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/1.037, allocations: 398.4 kB / 432.1 MB, free: 84.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00189/1.039, allocations: 0.5363 MB / 432.6 MB, free: 83.97 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002097/1.041, allocations: 0.6801 MB / 433.3 MB, free: 83.67 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001766/1.043, allocations: 482 kB / 433.7 MB, free: 83.47 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/1.043, allocations: 0 / 433.7 MB, free: 83.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.005846/1.049, allocations: 1.705 MB / 435.4 MB, free: 82.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/1.049, allocations: 7.969 kB / 435.5 MB, free: 82.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.593e-05/1.049, allocations: 3.812 kB / 435.5 MB, free: 82.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002648/1.052, allocations: 0.8102 MB / 436.3 MB, free: 82.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002029/1.054, allocations: 254.1 kB / 436.5 MB, free: 82.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003273/1.057, allocations: 1.887 MB / 438.4 MB, free: 80.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00232/1.059, allocations: 211.8 kB / 438.6 MB, free: 80.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002498/1.06, allocations: 62.59 kB / 438.7 MB, free: 80.57 MB / 346.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.0007857/1.06, allocations: 258.6 kB / 438.9 MB, free: 80.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003108/1.061, allocations: 91.72 kB / 439 MB, free: 80.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006713/1.068, allocations: 1.927 MB / 440.9 MB, free: 78.61 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.169e-05/1.068, allocations: 16 kB / 441 MB, free: 78.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/1.068, allocations: 0 / 441 MB, free: 78.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.814e-05/1.068, allocations: 7.453 kB / 441 MB, free: 78.59 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/1.078, allocations: 3.182 MB / 444.1 MB, free: 75.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.479e-05/1.078, allocations: 1.125 kB / 444.1 MB, free: 75.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002322/1.08, allocations: 260 kB / 444.4 MB, free: 75.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002649/1.083, allocations: 0.7606 MB / 445.2 MB, free: 75.14 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003193/1.083, allocations: 58.41 kB / 445.2 MB, free: 75.1 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003087/1.086, allocations: 1.819 MB / 447 MB, free: 73.32 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/1.087, allocations: 3.703 kB / 447 MB, free: 73.32 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008293/1.095, allocations: 2.481 MB / 449.5 MB, free: 71.03 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008959/1.096, allocations: 297.7 kB / 449.8 MB, free: 70.77 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003285/1.096, allocations: 46.67 kB / 449.9 MB, free: 70.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002202/1.098, allocations: 213.8 kB / 450.1 MB, free: 70.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007263/1.099, allocations: 231.3 kB / 450.3 MB, free: 70.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001915/1.099, allocations: 65.36 kB / 450.4 MB, free: 70.42 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007212/1.1, allocations: 364.5 kB / 450.7 MB, free: 70.11 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.1, allocations: 0 / 450.7 MB, free: 70.11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00138/1.101, allocations: 318.6 kB / 451 MB, free: 69.81 MB / 346.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.008706/1.11, allocations: 3.397 MB / 454.4 MB, free: 66.63 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005056/1.115, allocations: 1.547 MB / 456 MB, free: 65.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/1.115, allocations: 0 / 456 MB, free: 65.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003181/1.119, allocations: 0.8427 MB / 456.8 MB, free: 64.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/1.12, allocations: 133.9 kB / 456.9 MB, free: 64.37 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02729/1.147, allocations: 8.59 MB / 465.5 MB, free: 55.78 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000579/1.148, allocations: 1.051 MB / 466.6 MB, free: 54.7 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00101/1.149, allocations: 139.4 kB / 466.7 MB, free: 54.56 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008321/1.15, allocations: 343.3 kB / 467.1 MB, free: 54.22 MB / 346.7 MB Notification: Performance of SimCode: time 1.402e-06/1.15, allocations: 0 / 467.1 MB, free: 54.22 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1034/1.253, allocations: 26.42 MB / 493.5 MB, free: 27.8 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002566/1.254, allocations: 208.4 kB / 493.7 MB, free: 27.56 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.231/5.484, allocations: 3.938 kB / 493.7 MB, free: 27.56 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat