Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.577/1.577, allocations: 171.2 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003638/0.0003639, allocations: 8 kB / 233.1 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0688/0.06919, allocations: 38.78 MB / 271.9 MB, free: 12.22 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002914/0.07215, allocations: 1.898 MB / 273.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.07408, allocations: 0.9529 MB / 274.8 MB, free: 9.344 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.07425, allocations: 4 kB / 274.8 MB, free: 9.34 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.07439, allocations: 31.77 kB / 274.8 MB, free: 9.309 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005416/0.07495, allocations: 143.6 kB / 275 MB, free: 9.168 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004241/0.07539, allocations: 143.7 kB / 275.1 MB, free: 9.027 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004482/0.07585, allocations: 299.3 kB / 275.4 MB, free: 8.734 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001826/0.07605, allocations: 69.05 kB / 275.5 MB, free: 8.668 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003291/0.07641, allocations: 187.4 kB / 275.6 MB, free: 8.484 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003423/0.07676, allocations: 207.3 kB / 275.8 MB, free: 8.281 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.361e-05/0.07684, allocations: 20 kB / 275.9 MB, free: 8.262 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002343/0.07709, allocations: 95.81 kB / 276 MB, free: 8.168 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001416/0.07725, allocations: 83.75 kB / 276 MB, free: 8.086 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.07736, allocations: 85.52 kB / 276.1 MB, free: 7.996 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005264/0.0779, allocations: 355.4 kB / 276.5 MB, free: 7.648 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.904e-06/0.07792, allocations: 0 / 276.5 MB, free: 7.648 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.038e-06/0.07794, allocations: 4 kB / 276.5 MB, free: 7.645 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.894e-06/0.07795, allocations: 0 / 276.5 MB, free: 7.645 MB / 234.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.001378/0.07934, allocations: 0.6135 MB / 277.1 MB, free: 6.98 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.07939, allocations: 11.97 kB / 277.1 MB, free: 6.969 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003803/0.07978, allocations: 51.52 kB / 277.1 MB, free: 6.918 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005913/0.08039, allocations: 314.3 kB / 277.5 MB, free: 6.57 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.08058, allocations: 95.94 kB / 277.5 MB, free: 6.465 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.739e-05/0.08068, allocations: 32 kB / 277.6 MB, free: 6.434 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.08176, allocations: 412.9 kB / 278 MB, free: 6.02 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.379e-05/0.08181, allocations: 7.906 kB / 278 MB, free: 6.012 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.262e-05/0.08187, allocations: 12 kB / 278 MB, free: 6 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.0819, allocations: 8 kB / 278 MB, free: 5.992 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001627/0.08353, allocations: 478.3 kB / 278.5 MB, free: 5.523 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003416/0.08698, allocations: 0.9969 MB / 279.5 MB, free: 4.469 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/0.08881, allocations: 412.4 kB / 279.9 MB, free: 4.059 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.188e-05/0.0889, allocations: 8.438 kB / 279.9 MB, free: 4.051 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.634e-05/0.08896, allocations: 38.98 kB / 279.9 MB, free: 4.004 MB / 234.7 MB Notification: Performance of pre-optimization done (n=49): time 5.706e-06/0.08899, allocations: 0 / 279.9 MB, free: 4.004 MB / 234.7 MB Notification: Performance of matching and sorting (n=55): time 0.01073/0.09973, allocations: 2.203 MB / 282.1 MB, free: 1.691 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.686e-05/0.09987, allocations: 85.67 kB / 282.2 MB, free: 1.59 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006534/0.1005, allocations: 268 kB / 282.5 MB, free: 1.316 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.557e-05/0.1007, allocations: 37.7 kB / 282.5 MB, free: 1.273 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/0.1009, allocations: 199.5 kB / 282.7 MB, free: 1.078 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003028/0.1012, allocations: 181.4 kB / 282.9 MB, free: 0.8984 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.045e-05/0.1013, allocations: 11.94 kB / 282.9 MB, free: 0.8867 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002133/0.1015, allocations: 326.8 kB / 283.2 MB, free: 0.5586 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009783/0.1025, allocations: 205 kB / 283.4 MB, free: 364 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/0.1036, allocations: 244.6 kB / 283.6 MB, free: 112 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009862/0.1046, allocations: 202.2 kB / 283.8 MB, free: 15.91 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.422e-06/0.1046, allocations: 0 / 283.8 MB, free: 15.91 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002336/0.107, allocations: 0.6097 MB / 284.5 MB, free: 15.29 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.107, allocations: 11.94 kB / 284.5 MB, free: 15.28 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.107, allocations: 0 / 284.5 MB, free: 15.28 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/0.108, allocations: 262.1 kB / 284.7 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004021/0.1085, allocations: 63.89 kB / 284.8 MB, free: 14.96 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005446/0.1139, allocations: 2.744 MB / 287.5 MB, free: 12.08 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000396/0.1144, allocations: 35.97 kB / 287.6 MB, free: 12.05 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.417e-05/0.1145, allocations: 19.98 kB / 287.6 MB, free: 12.03 MB / 250.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.0002779/0.1147, allocations: 161.7 kB / 287.7 MB, free: 11.86 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.1149, allocations: 39.69 kB / 287.8 MB, free: 11.82 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001174/0.115, allocations: 47.3 kB / 287.8 MB, free: 11.77 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.512e-06/0.115, allocations: 8 kB / 287.8 MB, free: 11.77 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.983e-06/0.115, allocations: 0 / 287.8 MB, free: 11.77 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.1151, allocations: 3.984 kB / 287.8 MB, free: 11.76 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003107/0.1182, allocations: 1.284 MB / 289.1 MB, free: 10.42 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.249e-06/0.1182, allocations: 0 / 289.1 MB, free: 10.42 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00043/0.1187, allocations: 71.92 kB / 289.2 MB, free: 10.35 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009182/0.1196, allocations: 240.6 kB / 289.4 MB, free: 10.11 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.852e-05/0.1197, allocations: 19.94 kB / 289.4 MB, free: 10.09 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005248/0.1249, allocations: 2.657 MB / 292.1 MB, free: 7.301 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.764e-06/0.125, allocations: 0 / 292.1 MB, free: 7.301 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/0.1276, allocations: 0.9768 MB / 293.1 MB, free: 6.305 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002694/0.1278, allocations: 152.7 kB / 293.2 MB, free: 6.137 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.136e-05/0.128, allocations: 12 kB / 293.2 MB, free: 6.125 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000407/0.1284, allocations: 35.97 kB / 293.3 MB, free: 6.09 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.1286, allocations: 84.3 kB / 293.4 MB, free: 6.008 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.229e-05/0.1287, allocations: 19.98 kB / 293.4 MB, free: 5.988 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000314/0.129, allocations: 193.6 kB / 293.6 MB, free: 5.801 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.129, allocations: 0 / 293.6 MB, free: 5.801 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0008127/0.1298, allocations: 156 kB / 293.7 MB, free: 5.648 MB / 250.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.0002873/0.1301, allocations: 143.1 kB / 293.9 MB, free: 5.5 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001904/0.1321, allocations: 0.7189 MB / 294.6 MB, free: 4.766 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.179e-06/0.1321, allocations: 0 / 294.6 MB, free: 4.766 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001167/0.1333, allocations: 479.7 kB / 295 MB, free: 4.285 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003983/0.1337, allocations: 43.5 kB / 295.1 MB, free: 4.246 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/0.1358, allocations: 0.9778 MB / 296.1 MB, free: 3.234 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005918/0.1364, allocations: 0.8048 MB / 296.9 MB, free: 2.402 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001991/0.1367, allocations: 35.42 kB / 296.9 MB, free: 2.367 MB / 250.7 MB Notification: Performance of SimCode: time 2.256e-06/0.1367, allocations: 4 kB / 296.9 MB, free: 2.363 MB / 250.7 MB Notification: Performance of Templates: time 0.2855/0.4222, allocations: 5.74 MB / 302.6 MB, free: 29.27 MB / 250.7 MB