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.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.08/2.08, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004138/0.0004139, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1089, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4524/0.5614, allocations: 76.39 MB / 384.9 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.5617, allocations: 77.88 kB / 385 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05118/0.6129, allocations: 9.956 MB / 395 MB, free: 13.6 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.613, allocations: 0 / 395 MB, free: 13.6 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.843e-05/0.613, allocations: 3.875 kB / 395 MB, free: 13.6 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001564/0.6146, allocations: 0.6268 MB / 395.6 MB, free: 13.14 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.6147, allocations: 13 kB / 395.6 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001179/0.6148, allocations: 68.84 kB / 395.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004338/0.6152, allocations: 60.41 kB / 395.7 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005944/0.6159, allocations: 282 kB / 396 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/0.616, allocations: 89.11 kB / 396.1 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.133e-05/0.6161, allocations: 31.16 kB / 396.1 MB, free: 12.78 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.6173, allocations: 416 kB / 396.5 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.709e-05/0.6174, allocations: 0 / 396.5 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.006e-05/0.6175, allocations: 14.94 kB / 396.5 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.6175, allocations: 7.719 kB / 396.5 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001502/0.619, allocations: 483.6 kB / 397 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.621, allocations: 0.8984 MB / 397.9 MB, free: 12.35 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.6222, allocations: 393.4 kB / 398.3 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.302e-05/0.6223, allocations: 4.344 kB / 398.3 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.6223, allocations: 45.89 kB / 398.3 MB, free: 12.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.556e-06/0.6223, allocations: 0 / 398.3 MB, free: 12.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.008293/0.6306, allocations: 2.149 MB / 400.5 MB, free: 11.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/0.6307, allocations: 81.55 kB / 400.6 MB, free: 11.49 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003935/0.6311, allocations: 216.5 kB / 400.8 MB, free: 11.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.935e-05/0.6312, allocations: 36.48 kB / 400.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.984e-05/0.6313, allocations: 192 kB / 401 MB, free: 11.2 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/0.6315, allocations: 185.4 kB / 401.2 MB, free: 11.08 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.708e-05/0.6316, allocations: 12.12 kB / 401.2 MB, free: 11.08 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.78e-05/0.6317, allocations: 326.8 kB / 401.5 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007022/0.6324, allocations: 193.3 kB / 401.7 MB, free: 10.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007842/0.6332, allocations: 249.6 kB / 402 MB, free: 10.73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007275/0.634, allocations: 182.8 kB / 402.1 MB, free: 10.73 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.634, allocations: 5.234 kB / 402.1 MB, free: 10.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002002/0.636, allocations: 0.6043 MB / 402.7 MB, free: 10.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.636, allocations: 7.844 kB / 402.8 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.6361, allocations: 0 / 402.8 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001136/0.6372, allocations: 251.8 kB / 403 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005888/0.6378, allocations: 73.52 kB / 403.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005471/0.6433, allocations: 2.738 MB / 405.8 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006749/0.644, allocations: 40.62 kB / 405.8 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.853e-05/0.6441, allocations: 26.27 kB / 405.9 MB, free: 9.215 MB / 314.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.000284/0.6444, allocations: 154.6 kB / 406 MB, free: 9.098 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.6445, allocations: 34.25 kB / 406.1 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001422/0.6447, allocations: 45.39 kB / 406.1 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.699e-06/0.6447, allocations: 7.828 kB / 406.1 MB, free: 9.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.6447, allocations: 7.781 kB / 406.1 MB, free: 9.066 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.6448, allocations: 7.188 kB / 406.1 MB, free: 9.062 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003214/0.648, allocations: 1.251 MB / 407.4 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.648, allocations: 0 / 407.4 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005897/0.6486, allocations: 66.33 kB / 407.4 MB, free: 8.629 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001001/0.6497, allocations: 235.8 kB / 407.7 MB, free: 8.566 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.497e-05/0.6497, allocations: 16.77 kB / 407.7 MB, free: 8.562 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005084/0.6548, allocations: 2.662 MB / 410.3 MB, free: 6.961 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.6549, allocations: 0 / 410.3 MB, free: 6.961 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002858/0.6578, allocations: 0.9451 MB / 411.3 MB, free: 6.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002963/0.6581, allocations: 153.4 kB / 411.4 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.665e-05/0.6582, allocations: 18.02 kB / 411.5 MB, free: 6.547 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005317/0.6588, allocations: 34.16 kB / 411.5 MB, free: 6.539 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002725/0.6591, allocations: 72.73 kB / 411.6 MB, free: 6.504 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6e-05/0.6591, allocations: 26.88 kB / 411.6 MB, free: 6.492 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003204/0.6595, allocations: 175.9 kB / 411.8 MB, free: 6.395 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.264e-06/0.6595, allocations: 0 / 411.8 MB, free: 6.395 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009636/0.6605, allocations: 167.5 kB / 411.9 MB, free: 6.379 MB / 314.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.003452/0.6639, allocations: 1.629 MB / 413.6 MB, free: 5.465 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00214/0.6661, allocations: 0.6913 MB / 414.2 MB, free: 5.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.6662, allocations: 0 / 414.2 MB, free: 5.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.6675, allocations: 475.6 kB / 414.7 MB, free: 5.031 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005009/0.668, allocations: 30.3 kB / 414.7 MB, free: 5.023 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006405/0.6744, allocations: 2.551 MB / 417.3 MB, free: 3.793 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.6748, allocations: 0.8017 MB / 418.1 MB, free: 3.043 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003373/0.6751, allocations: 112.1 kB / 418.2 MB, free: 3.016 MB / 314.7 MB Notification: Performance of SimCode: time 1.573e-06/0.6752, allocations: 0 / 418.2 MB, free: 3.016 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.981/3.656, allocations: 6.998 MB / 425.2 MB, free: 15.52 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat