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.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 1.035/1.035, allocations: 111.1 MB / 126.7 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002604/0.0002606, allocations: 4 kB / 158.2 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04651/0.04679, allocations: 25.18 MB / 183.4 MB, free: 6.008 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002743/0.04958, allocations: 1.776 MB / 185.2 MB, free: 4.227 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.05144, allocations: 0.8352 MB / 186 MB, free: 3.387 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001799/0.05165, allocations: 4 kB / 186 MB, free: 3.383 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001783/0.05184, allocations: 39.75 kB / 186.1 MB, free: 3.344 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002673/0.05213, allocations: 111.7 kB / 186.2 MB, free: 3.234 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000725/0.05286, allocations: 191.6 kB / 186.4 MB, free: 3.047 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004798/0.05336, allocations: 315.8 kB / 186.7 MB, free: 2.738 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002132/0.05359, allocations: 86.02 kB / 186.8 MB, free: 2.656 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003529/0.05396, allocations: 203.3 kB / 187 MB, free: 2.457 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000356/0.05433, allocations: 227.2 kB / 187.2 MB, free: 2.234 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 6.387e-05/0.05441, allocations: 20 kB / 187.2 MB, free: 2.215 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003127/0.05474, allocations: 111.8 kB / 187.3 MB, free: 2.105 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.05488, allocations: 83.7 kB / 187.4 MB, free: 2.023 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.05501, allocations: 85.52 kB / 187.5 MB, free: 1.934 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005772/0.0556, allocations: 391.3 kB / 187.9 MB, free: 1.551 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.603e-06/0.05562, allocations: 4 kB / 187.9 MB, free: 1.547 MB / 154.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.05563, allocations: 0 / 187.9 MB, free: 1.547 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.05565, allocations: 0 / 187.9 MB, free: 1.547 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001497/0.05716, allocations: 0.6665 MB / 188.5 MB, free: 0.832 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.05722, allocations: 8.031 kB / 188.5 MB, free: 0.8242 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.05736, allocations: 39.53 kB / 188.6 MB, free: 0.7852 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000486/0.05786, allocations: 291.1 kB / 188.9 MB, free: 468 kB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.065e-05/0.05794, allocations: 28.66 kB / 188.9 MB, free: 436 kB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.05805, allocations: 36 kB / 188.9 MB, free: 400 kB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.05931, allocations: 475.4 kB / 189.4 MB, free: 15.91 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.032e-05/0.05936, allocations: 7.859 kB / 189.4 MB, free: 15.9 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.07e-05/0.05943, allocations: 16 kB / 189.4 MB, free: 15.89 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-05/0.05949, allocations: 12 kB / 189.4 MB, free: 15.88 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.06074, allocations: 450.7 kB / 189.9 MB, free: 15.43 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003013/0.06377, allocations: 1.173 MB / 191 MB, free: 14.21 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.06512, allocations: 487 kB / 191.5 MB, free: 13.73 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.544e-05/0.0652, allocations: 16.44 kB / 191.5 MB, free: 13.71 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.06525, allocations: 35 kB / 191.6 MB, free: 13.67 MB / 170.7 MB Notification: Performance of pre-optimization done (n=47): time 3.631e-06/0.06526, allocations: 0 / 191.6 MB, free: 13.67 MB / 170.7 MB Notification: Performance of matching and sorting (n=55): time 0.007224/0.0725, allocations: 2.527 MB / 194.1 MB, free: 11.01 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.442e-05/0.07261, allocations: 89.61 kB / 194.2 MB, free: 10.9 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004125/0.07304, allocations: 278.5 kB / 194.4 MB, free: 10.62 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 8.251e-05/0.07314, allocations: 41.7 kB / 194.5 MB, free: 10.58 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001679/0.07332, allocations: 211.3 kB / 194.7 MB, free: 10.37 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000221/0.07356, allocations: 185.4 kB / 194.9 MB, free: 10.19 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.161e-05/0.07362, allocations: 15.98 kB / 194.9 MB, free: 10.17 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.07381, allocations: 326.8 kB / 195.2 MB, free: 9.844 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007063/0.07453, allocations: 257 kB / 195.5 MB, free: 9.59 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007708/0.07532, allocations: 313.5 kB / 195.8 MB, free: 9.277 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006565/0.07599, allocations: 234.1 kB / 196 MB, free: 9.047 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.79e-06/0.07602, allocations: 4.031 kB / 196 MB, free: 9.043 MB / 170.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002022/0.07805, allocations: 0.7496 MB / 196.8 MB, free: 8.281 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.0781, allocations: 11.94 kB / 196.8 MB, free: 8.27 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.155e-06/0.07812, allocations: 0 / 196.8 MB, free: 8.27 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009891/0.07912, allocations: 320.6 kB / 197.1 MB, free: 7.953 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004394/0.07958, allocations: 79.89 kB / 197.2 MB, free: 7.875 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00157/0.08117, allocations: 0.9626 MB / 198.1 MB, free: 6.883 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005501/0.08175, allocations: 79.98 kB / 198.2 MB, free: 6.805 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.111e-05/0.08183, allocations: 20 kB / 198.2 MB, free: 6.785 MB / 170.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 (41): * Single equations (assignments): 40 * 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 prepare postOptimizeDAE: time 0.0003385/0.08218, allocations: 169.8 kB / 198.4 MB, free: 6.609 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/0.08232, allocations: 35.53 kB / 198.4 MB, free: 6.574 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001394/0.08247, allocations: 59.61 kB / 198.5 MB, free: 6.516 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.032e-06/0.08249, allocations: 4 kB / 198.5 MB, free: 6.512 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.454e-05/0.08252, allocations: 7.953 kB / 198.5 MB, free: 6.504 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.657e-06/0.08253, allocations: 3.938 kB / 198.5 MB, free: 6.5 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003789/0.08633, allocations: 1.523 MB / 200 MB, free: 4.914 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.709e-06/0.08639, allocations: 7.938 kB / 200 MB, free: 4.906 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000452/0.08685, allocations: 79.92 kB / 200.1 MB, free: 4.828 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008807/0.08775, allocations: 294.7 kB / 200.4 MB, free: 4.539 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.953e-05/0.08783, allocations: 15.98 kB / 200.4 MB, free: 4.523 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001457/0.0893, allocations: 0.9115 MB / 201.3 MB, free: 3.586 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.879e-06/0.08933, allocations: 3.984 kB / 201.3 MB, free: 3.582 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002908/0.09224, allocations: 1.14 MB / 202.5 MB, free: 2.422 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003184/0.09261, allocations: 160.7 kB / 202.6 MB, free: 2.246 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.09274, allocations: 23.95 kB / 202.6 MB, free: 2.223 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004883/0.09324, allocations: 68 kB / 202.7 MB, free: 2.156 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002523/0.09351, allocations: 92.23 kB / 202.8 MB, free: 2.066 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.932e-05/0.09359, allocations: 23.98 kB / 202.8 MB, free: 2.043 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0003006/0.0939, allocations: 205.9 kB / 203 MB, free: 1.836 MB / 170.7 MB Notification: Performance of sort global known variables: time 6.508e-06/0.09393, allocations: 0 / 203 MB, free: 1.836 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0006501/0.09459, allocations: 127.9 kB / 203.1 MB, free: 1.711 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: 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 (34): * Single equations (assignments): 33 * 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 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.000362/0.09496, allocations: 166.9 kB / 203.3 MB, free: 1.539 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.001794/0.09677, allocations: 0.6184 MB / 203.9 MB, free: 0.9258 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.253e-06/0.0968, allocations: 0 / 203.9 MB, free: 0.9258 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009757/0.09779, allocations: 337.1 kB / 204.3 MB, free: 0.5938 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004669/0.09828, allocations: 36.67 kB / 204.3 MB, free: 0.5586 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1157/0.214, allocations: 1.037 MB / 205.3 MB, free: 25.05 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.2143, allocations: 0.8082 MB / 206.1 MB, free: 24.35 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/0.2146, allocations: 41.98 kB / 206.2 MB, free: 24.35 MB / 170.7 MB Notification: Performance of SimCode: time 1.724e-06/0.2146, allocations: 2.625 kB / 206.2 MB, free: 24.35 MB / 170.7 MB Notification: Performance of Templates: time 0.01168/0.2263, allocations: 5.832 MB / 212 MB, free: 22.68 MB / 170.7 MB