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.LossyGearDemo2.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.LossyGearDemo2,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.208/2.208, allocations: 194.9 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005723/0.0005725, allocations: 8 kB / 264.1 MB, free: 2.52 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.32, allocations: 44.51 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1522/0.4723, allocations: 77.77 MB / 386.3 MB, free: 14.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003127/0.4726, allocations: 71.97 kB / 386.4 MB, free: 14.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05925/0.5319, allocations: 11.58 MB / 398 MB, free: 3.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.532, allocations: 0 / 398 MB, free: 3.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.533e-05/0.532, allocations: 11.98 kB / 398 MB, free: 3.078 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002495/0.5345, allocations: 0.7368 MB / 398.7 MB, free: 2.293 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.5346, allocations: 12.03 kB / 398.7 MB, free: 2.281 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002467/0.5349, allocations: 78.53 kB / 398.8 MB, free: 2.195 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005151/0.5354, allocations: 67.42 kB / 398.9 MB, free: 2.129 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008467/0.5363, allocations: 337.3 kB / 399.2 MB, free: 1.758 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001929/0.5365, allocations: 96.39 kB / 399.3 MB, free: 1.652 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.5366, allocations: 43.91 kB / 399.4 MB, free: 1.609 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001887/0.5385, allocations: 0.537 MB / 399.9 MB, free: 1.059 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.811e-05/0.5386, allocations: 12 kB / 399.9 MB, free: 1.047 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.91e-05/0.5387, allocations: 19.94 kB / 399.9 MB, free: 1.027 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.5388, allocations: 8 kB / 399.9 MB, free: 1.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002373/0.5411, allocations: 0.5972 MB / 400.5 MB, free: 432 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003618/0.5448, allocations: 1.166 MB / 401.7 MB, free: 15.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001823/0.5467, allocations: 0.4898 MB / 402.2 MB, free: 14.69 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/0.5469, allocations: 8.562 kB / 402.2 MB, free: 14.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.71e-05/0.5469, allocations: 47.11 kB / 402.2 MB, free: 14.62 MB / 346.7 MB Notification: Performance of pre-optimization done (n=63): time 4.118e-06/0.547, allocations: 0 / 402.2 MB, free: 14.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.01288/0.5598, allocations: 2.864 MB / 405.1 MB, free: 11.63 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.103e-05/0.56, allocations: 85.75 kB / 405.2 MB, free: 11.53 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005524/0.5605, allocations: 253.9 kB / 405.4 MB, free: 11.28 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001227/0.5607, allocations: 41.7 kB / 405.5 MB, free: 11.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.5608, allocations: 165.5 kB / 405.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002971/0.5611, allocations: 228.7 kB / 405.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.214e-05/0.5612, allocations: 16 kB / 405.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.5614, allocations: 350.8 kB / 406.2 MB, free: 10.47 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/0.5625, allocations: 273.2 kB / 406.5 MB, free: 10.21 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.5637, allocations: 330.5 kB / 406.8 MB, free: 9.871 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.5647, allocations: 243.2 kB / 407 MB, free: 9.637 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.5647, allocations: 0 / 407 MB, free: 9.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003338/0.5681, allocations: 0.8576 MB / 407.9 MB, free: 8.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.5681, allocations: 4 kB / 407.9 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.177e-05/0.5682, allocations: 0 / 407.9 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001821/0.57, allocations: 446.7 kB / 408.3 MB, free: 8.328 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007823/0.5708, allocations: 87.83 kB / 408.4 MB, free: 8.242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002108/0.573, allocations: 1.009 MB / 409.4 MB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.574, allocations: 79.98 kB / 409.5 MB, free: 7.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000132/0.5742, allocations: 31.98 kB / 409.5 MB, free: 7.098 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0004212/0.5746, allocations: 183.4 kB / 409.7 MB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/0.5748, allocations: 43.44 kB / 409.8 MB, free: 6.867 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003339/0.5782, allocations: 0.8834 MB / 410.7 MB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.631e-05/0.5782, allocations: 8 kB / 410.7 MB, free: 5.965 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.447e-06/0.5783, allocations: 4 kB / 410.7 MB, free: 5.961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.742e-05/0.5783, allocations: 4.047 kB / 410.7 MB, free: 5.957 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005797/0.5841, allocations: 1.72 MB / 412.4 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.5842, allocations: 0 / 412.4 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008143/0.585, allocations: 87.88 kB / 412.5 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001775/0.5868, allocations: 408.5 kB / 412.9 MB, free: 3.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001636/0.587, allocations: 23.98 kB / 412.9 MB, free: 3.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00201/0.589, allocations: 0.9816 MB / 413.9 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/0.5891, allocations: 3.984 kB / 413.9 MB, free: 2.645 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00801/0.5971, allocations: 1.287 MB / 415.2 MB, free: 1.316 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008072/0.598, allocations: 184.6 kB / 415.3 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002306/0.5982, allocations: 16 kB / 415.4 MB, free: 1.102 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001973/0.6002, allocations: 75.95 kB / 415.4 MB, free: 1.027 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004671/0.6007, allocations: 104.3 kB / 415.5 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001503/0.6009, allocations: 31.97 kB / 415.6 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006702/0.6016, allocations: 209.9 kB / 415.8 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6016, allocations: 0 / 415.8 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001913/0.6035, allocations: 151.9 kB / 415.9 MB, free: 0.543 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.2848/0.8884, allocations: 2.009 MB / 417.9 MB, free: 96.47 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004118/0.8926, allocations: 0.7058 MB / 418.6 MB, free: 96.43 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/0.8927, allocations: 0 / 418.6 MB, free: 96.43 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00212/0.8948, allocations: 383 kB / 419 MB, free: 96.42 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008237/0.8957, allocations: 39.73 kB / 419.1 MB, free: 96.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01369/0.9094, allocations: 3.549 MB / 422.6 MB, free: 95.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004298/0.9099, allocations: 0.8292 MB / 423.4 MB, free: 94.55 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005921/0.9105, allocations: 57.72 kB / 423.5 MB, free: 94.54 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004864/0.911, allocations: 142.5 kB / 423.6 MB, free: 94.44 MB / 346.7 MB Notification: Performance of SimCode: time 1.383e-06/0.911, allocations: 0 / 423.6 MB, free: 94.44 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.11/1.021, allocations: 12.13 MB / 435.8 MB, free: 87.34 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002247/1.021, allocations: 220.8 kB / 436 MB, free: 87.09 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.427/4.448, allocations: 0 / 436 MB, free: 87.09 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat