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.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.017/2.017, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003749/0.0003747, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1474, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.41/0.5574, allocations: 75.78 MB / 384.3 MB, free: 14.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.5578, allocations: 72.59 kB / 384.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03972/0.5975, allocations: 9.334 MB / 393.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.5976, allocations: 0 / 393.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.187e-05/0.5976, allocations: 3.906 kB / 393.7 MB, free: 13.52 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00137/0.599, allocations: 0.59 MB / 394.3 MB, free: 13.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.5991, allocations: 7.562 kB / 394.3 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.274e-05/0.5992, allocations: 70.8 kB / 394.4 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004107/0.5996, allocations: 50.55 kB / 394.4 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004686/0.6001, allocations: 273.5 kB / 394.7 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/0.6002, allocations: 84.64 kB / 394.8 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.935e-05/0.6003, allocations: 29.12 kB / 394.8 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009679/0.6013, allocations: 374.8 kB / 395.2 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.645e-05/0.6014, allocations: 3.984 kB / 395.2 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.145e-05/0.6014, allocations: 10.97 kB / 395.2 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.6014, allocations: 7.781 kB / 395.2 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001245/0.6027, allocations: 417.6 kB / 395.6 MB, free: 12.63 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002338/0.6051, allocations: 1.174 MB / 396.8 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009601/0.606, allocations: 329.3 kB / 397.1 MB, free: 12.05 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.625e-05/0.6061, allocations: 7.906 kB / 397.1 MB, free: 12.04 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.6061, allocations: 34.38 kB / 397.2 MB, free: 12 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.927e-06/0.6062, allocations: 4 kB / 397.2 MB, free: 12 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.007298/0.6135, allocations: 1.886 MB / 399 MB, free: 11.35 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.516e-05/0.6136, allocations: 88.61 kB / 399.1 MB, free: 11.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000352/0.6139, allocations: 189.3 kB / 399.3 MB, free: 11.15 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.48e-05/0.614, allocations: 33.2 kB / 399.3 MB, free: 11.12 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.414e-05/0.6141, allocations: 195.5 kB / 399.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.6142, allocations: 152.6 kB / 399.7 MB, free: 10.86 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.759e-05/0.6143, allocations: 6.875 kB / 399.7 MB, free: 10.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.993e-05/0.6144, allocations: 324.1 kB / 400 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005672/0.6149, allocations: 171.5 kB / 400.2 MB, free: 10.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006059/0.6156, allocations: 219.6 kB / 400.4 MB, free: 10.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005549/0.6161, allocations: 163.2 kB / 400.6 MB, free: 10.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.6162, allocations: 0 / 400.6 MB, free: 10.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00168/0.6178, allocations: 0.543 MB / 401.1 MB, free: 10.4 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.6179, allocations: 3.906 kB / 401.1 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.6179, allocations: 3.844 kB / 401.1 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.619, allocations: 236.4 kB / 401.3 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004152/0.6194, allocations: 49.78 kB / 401.4 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00525/0.6247, allocations: 2.713 MB / 404.1 MB, free: 8.969 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000505/0.6253, allocations: 34.12 kB / 404.1 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.776e-05/0.6254, allocations: 20.67 kB / 404.2 MB, free: 8.965 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002497/0.6256, allocations: 149.3 kB / 404.3 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.54e-05/0.6257, allocations: 30.38 kB / 404.3 MB, free: 8.832 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000119/0.6259, allocations: 43.05 kB / 404.4 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.6259, allocations: 7.953 kB / 404.4 MB, free: 8.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.6259, allocations: 1.312 kB / 404.4 MB, free: 8.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.926e-06/0.6259, allocations: 2.531 kB / 404.4 MB, free: 8.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002595/0.6285, allocations: 1.072 MB / 405.5 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.361e-06/0.6286, allocations: 3.953 kB / 405.5 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004038/0.629, allocations: 49.84 kB / 405.5 MB, free: 8.484 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001001/0.63, allocations: 231.6 kB / 405.7 MB, free: 8.465 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.842e-05/0.6301, allocations: 13.91 kB / 405.7 MB, free: 8.465 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004991/0.6351, allocations: 2.654 MB / 408.4 MB, free: 7.059 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.6351, allocations: 0 / 408.4 MB, free: 7.059 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002417/0.6375, allocations: 0.7942 MB / 409.2 MB, free: 6.887 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002664/0.6379, allocations: 140.5 kB / 409.3 MB, free: 6.781 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.694e-05/0.638, allocations: 13.98 kB / 409.3 MB, free: 6.781 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004501/0.6384, allocations: 24.97 kB / 409.4 MB, free: 6.781 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000255/0.6387, allocations: 66.94 kB / 409.4 MB, free: 6.781 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.465e-05/0.6388, allocations: 24.2 kB / 409.5 MB, free: 6.777 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002788/0.639, allocations: 159.4 kB / 409.6 MB, free: 6.695 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.6391, allocations: 0 / 409.6 MB, free: 6.695 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009005/0.64, allocations: 145.8 kB / 409.8 MB, free: 6.688 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.002847/0.6428, allocations: 1.39 MB / 411.1 MB, free: 5.891 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001882/0.6448, allocations: 0.6116 MB / 411.8 MB, free: 5.668 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.6448, allocations: 3.938 kB / 411.8 MB, free: 5.664 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.646, allocations: 432.4 kB / 412.2 MB, free: 5.465 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004743/0.6465, allocations: 33.3 kB / 412.2 MB, free: 5.453 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005689/0.6522, allocations: 2.684 MB / 414.9 MB, free: 3.855 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005618/0.6528, allocations: 0.7825 MB / 415.7 MB, free: 19.11 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003171/0.6531, allocations: 87.5 kB / 415.8 MB, free: 19.09 MB / 330.7 MB Notification: Performance of SimCode: time 1.573e-06/0.6531, allocations: 0 / 415.8 MB, free: 19.09 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.119/3.772, allocations: 6.109 MB / 421.9 MB, free: 16.04 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat