Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 1.581/1.581, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000345/0.0003451, allocations: 8 kB / 233.9 MB, free: 2.402 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07539/0.07576, allocations: 38.78 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003064/0.07887, allocations: 1.85 MB / 274.5 MB, free: 9.664 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002059/0.08097, allocations: 0.8907 MB / 275.4 MB, free: 8.773 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.08118, allocations: 8 kB / 275.4 MB, free: 8.766 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.08133, allocations: 31.77 kB / 275.4 MB, free: 8.734 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005632/0.08191, allocations: 127.6 kB / 275.5 MB, free: 8.609 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004479/0.08237, allocations: 135.8 kB / 275.7 MB, free: 8.477 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000444/0.08283, allocations: 263.4 kB / 275.9 MB, free: 8.219 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.08301, allocations: 48.66 kB / 276 MB, free: 8.172 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002419/0.08327, allocations: 163.5 kB / 276.1 MB, free: 8.012 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003393/0.08362, allocations: 199.3 kB / 276.3 MB, free: 7.816 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.578e-05/0.0837, allocations: 16 kB / 276.3 MB, free: 7.801 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002668/0.08398, allocations: 75.94 kB / 276.4 MB, free: 7.727 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.08414, allocations: 83.77 kB / 276.5 MB, free: 7.645 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.186e-05/0.08425, allocations: 73.52 kB / 276.6 MB, free: 7.566 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005/0.08476, allocations: 311.5 kB / 276.9 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.08478, allocations: 0 / 276.9 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.08479, allocations: 0 / 276.9 MB, free: 7.262 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.0848, allocations: 0 / 276.9 MB, free: 7.262 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001507/0.08632, allocations: 0.5847 MB / 277.5 MB, free: 6.625 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.08638, allocations: 15.97 kB / 277.5 MB, free: 6.609 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004246/0.08682, allocations: 47.61 kB / 277.5 MB, free: 6.562 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005817/0.08742, allocations: 302.5 kB / 277.8 MB, free: 6.227 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/0.08759, allocations: 83.92 kB / 277.9 MB, free: 6.133 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.341e-05/0.0877, allocations: 35.89 kB / 277.9 MB, free: 6.098 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.08878, allocations: 377.2 kB / 278.3 MB, free: 5.711 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.08882, allocations: 0 / 278.3 MB, free: 5.711 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.647e-05/0.08889, allocations: 16 kB / 278.3 MB, free: 5.695 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.612e-05/0.08892, allocations: 8 kB / 278.3 MB, free: 5.688 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.09039, allocations: 421.9 kB / 278.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003244/0.09365, allocations: 1.257 MB / 280 MB, free: 3.949 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.0949, allocations: 362.4 kB / 280.3 MB, free: 3.59 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.745e-05/0.09499, allocations: 8.141 kB / 280.4 MB, free: 3.582 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.476e-05/0.09505, allocations: 42.55 kB / 280.4 MB, free: 3.531 MB / 234.7 MB Notification: Performance of pre-optimization done (n=43): time 3.687e-06/0.09506, allocations: 0 / 280.4 MB, free: 3.531 MB / 234.7 MB Notification: Performance of matching and sorting (n=45): time 0.007962/0.103, allocations: 1.934 MB / 282.3 MB, free: 1.484 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.1031, allocations: 88.86 kB / 282.4 MB, free: 1.379 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004206/0.1036, allocations: 246.2 kB / 282.7 MB, free: 1.129 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.792e-05/0.1036, allocations: 37.7 kB / 282.7 MB, free: 1.086 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1037, allocations: 128.7 kB / 282.8 MB, free: 0.957 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001811/0.1039, allocations: 153.8 kB / 283 MB, free: 0.8047 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.162e-05/0.104, allocations: 8 kB / 283 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1041, allocations: 334.8 kB / 283.3 MB, free: 472 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006228/0.1048, allocations: 172.8 kB / 283.5 MB, free: 300 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006772/0.1055, allocations: 229.8 kB / 283.7 MB, free: 48 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006236/0.1061, allocations: 172.8 kB / 283.9 MB, free: 15.88 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1061, allocations: 0 / 283.9 MB, free: 15.88 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001835/0.108, allocations: 0.5552 MB / 284.4 MB, free: 15.31 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.108, allocations: 7.953 kB / 284.4 MB, free: 15.3 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.108, allocations: 4 kB / 284.4 MB, free: 15.3 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001154/0.1092, allocations: 244.7 kB / 284.7 MB, free: 15.06 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004201/0.1096, allocations: 51.91 kB / 284.7 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006007/0.1156, allocations: 2.705 MB / 287.4 MB, free: 12.17 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005/0.1162, allocations: 39.94 kB / 287.5 MB, free: 12.13 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.166e-05/0.1163, allocations: 19.98 kB / 287.5 MB, free: 12.11 MB / 250.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.0002529/0.1165, allocations: 145.8 kB / 287.6 MB, free: 11.96 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.952e-05/0.1166, allocations: 27.72 kB / 287.7 MB, free: 11.93 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001301/0.1168, allocations: 42.98 kB / 287.7 MB, free: 11.89 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.1168, allocations: 7.984 kB / 287.7 MB, free: 11.88 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.1168, allocations: 0 / 287.7 MB, free: 11.88 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002338/0.1171, allocations: 140.8 kB / 287.8 MB, free: 11.73 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.692e-05/0.1172, allocations: 15.95 kB / 287.9 MB, free: 11.71 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004507/0.1176, allocations: 31.91 kB / 287.9 MB, free: 11.68 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.1178, allocations: 47.86 kB / 287.9 MB, free: 11.63 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003107/0.1209, allocations: 0.7 MB / 288.6 MB, free: 10.93 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002292/0.1233, allocations: 0.8085 MB / 289.4 MB, free: 10.1 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006733/0.124, allocations: 184 kB / 289.6 MB, free: 9.922 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003237/0.1243, allocations: 184.2 kB / 289.8 MB, free: 9.742 MB / 250.7 MB Notification: Performance of Backend: time 6.41e-07/0.1243, allocations: 0 / 289.8 MB, free: 9.742 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001838/0.1262, allocations: 0.5743 MB / 290.4 MB, free: 9.148 MB / 250.7 MB Notification: Performance of SimCode: time 0.00198/0.1282, allocations: 1.352 MB / 291.7 MB, free: 7.746 MB / 250.7 MB Notification: Performance of Templates: time 0.01716/0.1454, allocations: 5.938 MB / 297.7 MB, free: 1.801 MB / 250.7 MB