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.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.783/1.783, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003713/0.0003714, allocations: 11.98 kB / 233.3 MB, free: 0.8281 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0827/0.08312, allocations: 38.77 MB / 272.1 MB, free: 9.98 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3419/0.4251, allocations: 71.07 MB / 343.2 MB, free: 11.93 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/0.4255, allocations: 79.95 kB / 343.3 MB, free: 11.85 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0598/0.4853, allocations: 9.946 MB / 353.2 MB, free: 1.895 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4854, allocations: 0 / 353.2 MB, free: 1.895 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.074e-05/0.4854, allocations: 4 kB / 353.2 MB, free: 1.891 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.002446/0.4879, allocations: 0.6315 MB / 353.8 MB, free: 1.211 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.598e-05/0.488, allocations: 8.031 kB / 353.8 MB, free: 1.203 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002054/0.4882, allocations: 74.53 kB / 353.9 MB, free: 1.121 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006693/0.4889, allocations: 51.52 kB / 354 MB, free: 1.07 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008955/0.4898, allocations: 294.2 kB / 354.3 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002411/0.49, allocations: 92.05 kB / 354.3 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.4902, allocations: 35.84 kB / 354.4 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.4921, allocations: 404.9 kB / 354.8 MB, free: 204 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.204e-05/0.4922, allocations: 0 / 354.8 MB, free: 204 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.23e-05/0.4923, allocations: 16 kB / 354.8 MB, free: 188 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.182e-05/0.4923, allocations: 12 kB / 354.8 MB, free: 176 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00246/0.4948, allocations: 474.2 kB / 355.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003072/0.4979, allocations: 0.8994 MB / 356.2 MB, free: 14.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001918/0.4999, allocations: 388.4 kB / 356.5 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.706e-05/0.5, allocations: 8.438 kB / 356.5 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.302e-05/0.5001, allocations: 38.98 kB / 356.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 4.168e-06/0.5001, allocations: 0 / 356.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.01271/0.5128, allocations: 2.149 MB / 358.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.77e-05/0.513, allocations: 89.61 kB / 358.8 MB, free: 11.94 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006199/0.5136, allocations: 215.2 kB / 359 MB, free: 11.72 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001435/0.5138, allocations: 37.7 kB / 359.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/0.5139, allocations: 199.5 kB / 359.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003341/0.5143, allocations: 181.4 kB / 359.4 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.612e-05/0.5144, allocations: 12 kB / 359.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.5146, allocations: 326.8 kB / 359.8 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001166/0.5158, allocations: 197 kB / 360 MB, free: 10.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009438/0.5168, allocations: 240.6 kB / 360.2 MB, free: 10.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008352/0.5176, allocations: 190.2 kB / 360.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.214e-06/0.5177, allocations: 0 / 360.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002317/0.52, allocations: 0.6095 MB / 361 MB, free: 9.715 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/0.5201, allocations: 8.578 kB / 361 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.5201, allocations: 4 kB / 361 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/0.5214, allocations: 242.8 kB / 361.2 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006456/0.522, allocations: 75.81 kB / 361.3 MB, free: 9.391 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006606/0.5287, allocations: 2.748 MB / 364.1 MB, free: 6.512 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006315/0.5293, allocations: 43.95 kB / 364.1 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.994e-05/0.5294, allocations: 19.98 kB / 364.1 MB, free: 6.449 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0003362/0.5298, allocations: 157.9 kB / 364.3 MB, free: 6.285 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.5299, allocations: 31.62 kB / 364.3 MB, free: 6.254 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001609/0.5301, allocations: 51.23 kB / 364.4 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.5301, allocations: 8 kB / 364.4 MB, free: 6.199 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.5301, allocations: 0 / 364.4 MB, free: 6.199 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.5302, allocations: 3.984 kB / 364.4 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003826/0.534, allocations: 1.249 MB / 365.6 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.5341, allocations: 0 / 365.6 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006666/0.5347, allocations: 75.83 kB / 365.7 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001132/0.5359, allocations: 224.7 kB / 365.9 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-05/0.536, allocations: 15.98 kB / 365.9 MB, free: 4.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006193/0.5422, allocations: 2.659 MB / 368.6 MB, free: 1.773 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.5423, allocations: 0 / 368.6 MB, free: 1.773 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003305/0.5456, allocations: 0.9549 MB / 369.5 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003571/0.546, allocations: 152.7 kB / 369.7 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.5461, allocations: 16 kB / 369.7 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005833/0.5467, allocations: 40.03 kB / 369.8 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002895/0.547, allocations: 80.23 kB / 369.8 MB, free: 500 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.854e-05/0.5471, allocations: 23.98 kB / 369.9 MB, free: 476 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003649/0.5475, allocations: 177.6 kB / 370 MB, free: 300 kB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5475, allocations: 0 / 370 MB, free: 300 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009851/0.5485, allocations: 159.9 kB / 370.2 MB, free: 140 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.004226/0.5527, allocations: 1.643 MB / 371.8 MB, free: 14.46 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002465/0.5553, allocations: 0.6883 MB / 372.5 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.5553, allocations: 0 / 372.5 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001507/0.5568, allocations: 479.8 kB / 373 MB, free: 13.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000537/0.5574, allocations: 36.31 kB / 373 MB, free: 13.24 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007581/0.565, allocations: 2.555 MB / 375.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005566/0.5656, allocations: 0.8087 MB / 376.4 MB, free: 9.789 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004218/0.5661, allocations: 103.4 kB / 376.5 MB, free: 9.688 MB / 314.7 MB Notification: Performance of SimCode: time 1.282e-06/0.5661, allocations: 0 / 376.5 MB, free: 9.688 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.918/3.484, allocations: 6.983 MB / 383.5 MB, free: 2.707 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat