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.GenerationOfFMUs.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.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.173/2.173, allocations: 194.9 MB / 211.1 MB, free: 8.555 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000346/0.0003461, allocations: 8 kB / 264.1 MB, free: 3.477 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3132, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1853/0.4986, allocations: 76.73 MB / 385.3 MB, free: 15.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00036/0.499, allocations: 75.97 kB / 385.4 MB, free: 15.74 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05737/0.5564, allocations: 11.86 MB / 397.2 MB, free: 3.867 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.5565, allocations: 0 / 397.2 MB, free: 3.867 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.498e-05/0.5566, allocations: 23.98 kB / 397.3 MB, free: 3.844 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.002659/0.5592, allocations: 0.9127 MB / 398.2 MB, free: 2.879 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.619e-05/0.5593, allocations: 12.03 kB / 398.2 MB, free: 2.867 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005739/0.5599, allocations: 135.3 kB / 398.3 MB, free: 2.727 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003475/0.5603, allocations: 94.86 kB / 398.4 MB, free: 2.633 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002308/0.5626, allocations: 0.502 MB / 398.9 MB, free: 2.086 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.186e-05/0.5628, allocations: 66 kB / 399 MB, free: 2.023 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002223/0.563, allocations: 91.86 kB / 399.1 MB, free: 1.934 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002531/0.5655, allocations: 0.822 MB / 399.9 MB, free: 1.066 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.736e-05/0.5656, allocations: 15.84 kB / 399.9 MB, free: 1.051 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.5658, allocations: 32 kB / 399.9 MB, free: 1.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-05/0.5658, allocations: 20 kB / 399.9 MB, free: 1 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00192/0.5677, allocations: 0.5196 MB / 400.5 MB, free: 492 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005898/0.5737, allocations: 3.079 MB / 403.5 MB, free: 13.28 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.5748, allocations: 295.5 kB / 403.8 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000284/0.5751, allocations: 247.3 kB / 404.1 MB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.5752, allocations: 46.73 kB / 404.1 MB, free: 12.61 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 5.03e-06/0.5752, allocations: 0 / 404.1 MB, free: 12.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=37): time 0.004464/0.5797, allocations: 1.586 MB / 405.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.508e-05/0.5798, allocations: 110.8 kB / 405.8 MB, free: 10.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004986/0.5803, allocations: 292.7 kB / 406.1 MB, free: 10.46 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.457e-05/0.5804, allocations: 33.7 kB / 406.1 MB, free: 10.42 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003677/0.5808, allocations: 406.5 kB / 406.5 MB, free: 10.01 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001745/0.581, allocations: 138.1 kB / 406.7 MB, free: 9.875 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.412e-05/0.581, allocations: 12 kB / 406.7 MB, free: 9.863 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.5812, allocations: 350.8 kB / 407 MB, free: 9.512 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004595/0.5817, allocations: 125.1 kB / 407.1 MB, free: 9.391 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005664/0.5823, allocations: 281.1 kB / 407.4 MB, free: 9.043 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005336/0.5828, allocations: 171.6 kB / 407.6 MB, free: 8.879 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.5828, allocations: 0 / 407.6 MB, free: 8.879 MB / 346.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001509/0.5844, allocations: 0.4959 MB / 408.1 MB, free: 8.375 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.43e-05/0.5844, allocations: 8 kB / 408.1 MB, free: 8.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/0.5845, allocations: 7.984 kB / 408.1 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002797/0.5847, allocations: 44.83 kB / 408.1 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007892/0.5856, allocations: 119.8 kB / 408.3 MB, free: 8.195 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005418/0.5861, allocations: 0.5605 MB / 408.8 MB, free: 7.609 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004256/0.5866, allocations: 27.84 kB / 408.8 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.089e-05/0.5867, allocations: 27.98 kB / 408.9 MB, free: 7.555 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 61 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0005277/0.5872, allocations: 222 kB / 409.1 MB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.5874, allocations: 39.53 kB / 409.1 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00105/0.5884, allocations: 323.2 kB / 409.4 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.5885, allocations: 8 kB / 409.5 MB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.5885, allocations: 0 / 409.5 MB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.556e-05/0.5885, allocations: 11.98 kB / 409.5 MB, free: 6.945 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002602/0.5911, allocations: 1.099 MB / 410.6 MB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.5912, allocations: 4 kB / 410.6 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008439/0.592, allocations: 87.89 kB / 410.7 MB, free: 5.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002283/0.5923, allocations: 36.83 kB / 410.7 MB, free: 5.641 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.518e-05/0.5923, allocations: 8 kB / 410.7 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005375/0.5929, allocations: 0.5564 MB / 411.3 MB, free: 5.051 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.5929, allocations: 4 kB / 411.3 MB, free: 5.047 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0019/0.5948, allocations: 0.844 MB / 412.1 MB, free: 4.117 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001904/0.5951, allocations: 112.6 kB / 412.2 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.691e-05/0.5952, allocations: 8 kB / 412.2 MB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004164/0.5956, allocations: 15.98 kB / 412.2 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.5957, allocations: 32 kB / 412.3 MB, free: 3.934 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-05/0.5958, allocations: 15.98 kB / 412.3 MB, free: 3.918 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004022/0.5962, allocations: 231.1 kB / 412.5 MB, free: 3.691 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5962, allocations: 0 / 412.5 MB, free: 3.691 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009253/0.5971, allocations: 128 kB / 412.6 MB, free: 3.566 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w,inertia2a.w,torqueToAngle2a.phi,inertia2b.phi,inertia2b.w,directInertia.inertia.w,directInertia.torqueToAngle.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002459/0.5996, allocations: 1.894 MB / 414.5 MB, free: 1.598 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001292/0.601, allocations: 347.1 kB / 414.9 MB, free: 1.262 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/0.601, allocations: 4 kB / 414.9 MB, free: 1.258 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006403/0.6017, allocations: 167 kB / 415 MB, free: 1.098 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007719/0.6025, allocations: 73.67 kB / 415.1 MB, free: 1.027 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2563/0.8588, allocations: 6.745 MB / 421.8 MB, free: 88.11 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006045/0.8594, allocations: 0.9492 MB / 422.8 MB, free: 87.41 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003491/0.8598, allocations: 45.66 kB / 422.8 MB, free: 87.41 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003938/0.8602, allocations: 263.6 kB / 423.1 MB, free: 87.4 MB / 346.7 MB Notification: Performance of SimCode: time 1.462e-06/0.8602, allocations: 0 / 423.1 MB, free: 87.4 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03909/0.8993, allocations: 8.457 MB / 431.6 MB, free: 86.68 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002341/0.8996, allocations: 211 kB / 431.8 MB, free: 86.45 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.037/3.937, allocations: 0 / 431.8 MB, free: 86.45 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat