Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.032/1.032, allocations: 111.2 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00027/0.0002702, allocations: 4 kB / 158.2 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04612/0.04641, allocations: 25.18 MB / 183.4 MB, free: 6.008 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002543/0.049, allocations: 1.566 MB / 185 MB, free: 4.438 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.05056, allocations: 0.6755 MB / 185.7 MB, free: 3.758 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.05074, allocations: 3.938 kB / 185.7 MB, free: 3.754 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000144/0.0509, allocations: 27.83 kB / 185.7 MB, free: 3.727 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001911/0.05111, allocations: 75.78 kB / 185.8 MB, free: 3.652 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005631/0.05168, allocations: 131.7 kB / 185.9 MB, free: 3.523 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.000346/0.05205, allocations: 223.6 kB / 186.1 MB, free: 3.305 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.05224, allocations: 61.14 kB / 186.2 MB, free: 3.246 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002538/0.05251, allocations: 131.5 kB / 186.3 MB, free: 3.117 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.05277, allocations: 143.5 kB / 186.4 MB, free: 2.977 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 4.683e-05/0.05283, allocations: 16 kB / 186.5 MB, free: 2.961 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001967/0.05304, allocations: 75.88 kB / 186.5 MB, free: 2.887 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 9.48e-05/0.05315, allocations: 63.75 kB / 186.6 MB, free: 2.824 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 8.242e-05/0.05324, allocations: 65.58 kB / 186.7 MB, free: 2.754 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004122/0.05367, allocations: 271.6 kB / 186.9 MB, free: 2.488 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.952e-06/0.05369, allocations: 0 / 186.9 MB, free: 2.488 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.497e-06/0.0537, allocations: 0 / 186.9 MB, free: 2.488 MB / 154.7 MB Notification: Performance of Transformations before backend: time 7.537e-06/0.05372, allocations: 0 / 186.9 MB, free: 2.488 MB / 154.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001111/0.05484, allocations: 0.5496 MB / 187.5 MB, free: 1.891 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.05489, allocations: 12.03 kB / 187.5 MB, free: 1.879 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.047e-05/0.05499, allocations: 31.62 kB / 187.5 MB, free: 1.848 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003663/0.05537, allocations: 246.6 kB / 187.8 MB, free: 1.566 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.678e-05/0.05543, allocations: 28.55 kB / 187.8 MB, free: 1.539 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.735e-05/0.05551, allocations: 27.91 kB / 187.8 MB, free: 1.512 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009154/0.05644, allocations: 331.6 kB / 188.1 MB, free: 1.172 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.487e-05/0.05649, allocations: 3.953 kB / 188.1 MB, free: 1.168 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.572e-05/0.05654, allocations: 12 kB / 188.1 MB, free: 1.156 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.431e-05/0.0566, allocations: 15.98 kB / 188.2 MB, free: 1.141 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000843/0.05745, allocations: 290 kB / 188.4 MB, free: 0.8594 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/0.05955, allocations: 0.8752 MB / 189.3 MB, free: 15.92 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009213/0.0605, allocations: 338.4 kB / 189.7 MB, free: 15.58 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.028e-05/0.06058, allocations: 12.06 kB / 189.7 MB, free: 15.57 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.06063, allocations: 47.14 kB / 189.7 MB, free: 15.52 MB / 170.7 MB Notification: Performance of pre-optimization done (n=36): time 3.446e-06/0.06064, allocations: 0 / 189.7 MB, free: 15.52 MB / 170.7 MB Notification: Performance of matching and sorting (n=42): time 0.005243/0.06589, allocations: 1.839 MB / 191.6 MB, free: 13.56 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.131e-05/0.066, allocations: 84.89 kB / 191.6 MB, free: 13.46 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003046/0.06632, allocations: 219.4 kB / 191.8 MB, free: 13.24 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.005e-05/0.0664, allocations: 37.7 kB / 191.9 MB, free: 13.2 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.06654, allocations: 187.2 kB / 192.1 MB, free: 13.01 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001632/0.06672, allocations: 142 kB / 192.2 MB, free: 12.87 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.601e-05/0.06677, allocations: 12 kB / 192.2 MB, free: 12.86 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.06695, allocations: 326.8 kB / 192.5 MB, free: 12.53 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005071/0.06747, allocations: 172.7 kB / 192.7 MB, free: 12.36 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005339/0.06802, allocations: 215.7 kB / 192.9 MB, free: 12.14 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004754/0.06851, allocations: 164 kB / 193.1 MB, free: 11.98 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.934e-06/0.06853, allocations: 0 / 193.1 MB, free: 11.98 MB / 170.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001419/0.06997, allocations: 0.5097 MB / 193.6 MB, free: 11.46 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.07001, allocations: 8 kB / 193.6 MB, free: 11.45 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.07003, allocations: 0 / 193.6 MB, free: 11.45 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006613/0.07071, allocations: 166.1 kB / 193.8 MB, free: 11.29 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003564/0.07108, allocations: 63.89 kB / 193.8 MB, free: 11.22 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004193/0.0753, allocations: 2.328 MB / 196.1 MB, free: 8.766 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003229/0.07566, allocations: 36.03 kB / 196.2 MB, free: 8.73 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.477e-05/0.07573, allocations: 16 kB / 196.2 MB, free: 8.715 MB / 170.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 (29): * Single equations (assignments): 28 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002565/0.076, allocations: 149.8 kB / 196.3 MB, free: 8.559 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.436e-05/0.07611, allocations: 31.67 kB / 196.4 MB, free: 8.527 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.629e-05/0.07621, allocations: 39 kB / 196.4 MB, free: 8.488 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.146e-06/0.07623, allocations: 4 kB / 196.4 MB, free: 8.484 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.848e-06/0.07625, allocations: 4 kB / 196.4 MB, free: 8.48 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.728e-06/0.07627, allocations: 3.984 kB / 196.4 MB, free: 8.477 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002537/0.07881, allocations: 1.097 MB / 197.5 MB, free: 7.316 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.07885, allocations: 0 / 197.5 MB, free: 7.316 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004021/0.07926, allocations: 67.89 kB / 197.6 MB, free: 7.25 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005607/0.07985, allocations: 144.8 kB / 197.7 MB, free: 7.105 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.489e-05/0.07991, allocations: 15.98 kB / 197.7 MB, free: 7.09 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003957/0.08388, allocations: 2.229 MB / 200 MB, free: 4.723 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.119e-06/0.08393, allocations: 0 / 200 MB, free: 4.723 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002083/0.08602, allocations: 0.8218 MB / 200.8 MB, free: 3.879 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002401/0.0863, allocations: 140.8 kB / 200.9 MB, free: 3.723 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.29e-05/0.08639, allocations: 12 kB / 200.9 MB, free: 3.711 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003117/0.08672, allocations: 27.98 kB / 201 MB, free: 3.684 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002071/0.08694, allocations: 75.81 kB / 201 MB, free: 3.609 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.2e-05/0.087, allocations: 8 kB / 201.1 MB, free: 3.602 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002078/0.08721, allocations: 160.5 kB / 201.2 MB, free: 3.445 MB / 170.7 MB Notification: Performance of sort global known variables: time 9.51e-07/0.08723, allocations: 0 / 201.2 MB, free: 3.445 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0007158/0.08795, allocations: 112 kB / 201.3 MB, free: 3.336 MB / 170.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 (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 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002657/0.08823, allocations: 139.1 kB / 201.5 MB, free: 3.191 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.0898, allocations: 0.5943 MB / 202 MB, free: 2.582 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.005e-06/0.08984, allocations: 0 / 202 MB, free: 2.582 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009131/0.09076, allocations: 406.2 kB / 202.4 MB, free: 2.172 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004001/0.09118, allocations: 27.92 kB / 202.5 MB, free: 2.145 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00186/0.09306, allocations: 0.8683 MB / 203.3 MB, free: 1.242 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005153/0.0936, allocations: 0.7803 MB / 204.1 MB, free: 448 kB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001573/0.09377, allocations: 35.42 kB / 204.2 MB, free: 412 kB / 170.7 MB Notification: Performance of SimCode: time 1.961e-06/0.09378, allocations: 0 / 204.2 MB, free: 412 kB / 170.7 MB Notification: Performance of Templates: time 0.1246/0.2184, allocations: 4.699 MB / 208.9 MB, free: 22.86 MB / 170.7 MB