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.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.697/1.697, allocations: 171.2 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000348/0.000348, allocations: 8 kB / 233.9 MB, free: 2.406 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07898/0.07935, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003252/0.08265, allocations: 1.912 MB / 274.5 MB, free: 9.617 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002108/0.08478, allocations: 0.9452 MB / 275.5 MB, free: 8.672 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.08494, allocations: 4 kB / 275.5 MB, free: 8.668 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001364/0.08509, allocations: 35.7 kB / 275.5 MB, free: 8.633 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005706/0.08567, allocations: 139.6 kB / 275.7 MB, free: 8.496 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004599/0.08614, allocations: 151.7 kB / 275.8 MB, free: 8.348 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004877/0.08665, allocations: 295.4 kB / 276.1 MB, free: 8.059 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.08687, allocations: 73.03 kB / 276.2 MB, free: 7.988 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003279/0.08721, allocations: 175.5 kB / 276.3 MB, free: 7.816 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003682/0.08759, allocations: 215.3 kB / 276.5 MB, free: 7.605 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.992e-05/0.08769, allocations: 20 kB / 276.6 MB, free: 7.586 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002593/0.08796, allocations: 91.86 kB / 276.7 MB, free: 7.496 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.08812, allocations: 87.72 kB / 276.7 MB, free: 7.41 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.08824, allocations: 77.52 kB / 276.8 MB, free: 7.328 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005768/0.08883, allocations: 359.3 kB / 277.2 MB, free: 6.977 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.08885, allocations: 3.938 kB / 277.2 MB, free: 6.973 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.08886, allocations: 0 / 277.2 MB, free: 6.973 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.08887, allocations: 4 kB / 277.2 MB, free: 6.969 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.00164/0.09052, allocations: 0.6081 MB / 277.8 MB, free: 6.309 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.09058, allocations: 8.031 kB / 277.8 MB, free: 6.301 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004447/0.09103, allocations: 59.5 kB / 277.8 MB, free: 6.242 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006218/0.09167, allocations: 306.2 kB / 278.1 MB, free: 5.902 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001732/0.09186, allocations: 92 kB / 278.2 MB, free: 5.801 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.09197, allocations: 35.98 kB / 278.3 MB, free: 5.766 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.09326, allocations: 416.9 kB / 278.7 MB, free: 5.348 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.0933, allocations: 3.906 kB / 278.7 MB, free: 5.344 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.88e-05/0.09336, allocations: 12 kB / 278.7 MB, free: 5.332 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.09339, allocations: 4 kB / 278.7 MB, free: 5.328 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001771/0.09517, allocations: 494.2 kB / 279.2 MB, free: 4.844 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002743/0.09793, allocations: 0.993 MB / 280.2 MB, free: 3.793 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/0.09931, allocations: 404.3 kB / 280.6 MB, free: 3.391 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.252e-05/0.0994, allocations: 16.42 kB / 280.6 MB, free: 3.375 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.748e-05/0.09944, allocations: 39 kB / 280.6 MB, free: 3.328 MB / 234.7 MB Notification: Performance of pre-optimization done (n=49): time 2.745e-06/0.09946, allocations: 192 / 280.6 MB, free: 3.328 MB / 234.7 MB Notification: Performance of matching and sorting (n=55): time 0.008733/0.1082, allocations: 2.207 MB / 282.8 MB, free: 1.012 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/0.1083, allocations: 81.67 kB / 282.9 MB, free: 0.9141 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004858/0.1088, allocations: 264.1 kB / 283.2 MB, free: 0.6445 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.486e-05/0.1089, allocations: 37.7 kB / 283.2 MB, free: 0.6016 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.109, allocations: 133.1 kB / 283.3 MB, free: 480 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002133/0.1092, allocations: 185.4 kB / 283.5 MB, free: 292 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.275e-05/0.1093, allocations: 12 kB / 283.5 MB, free: 280 kB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.1095, allocations: 342.8 kB / 283.9 MB, free: 15.93 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007851/0.1103, allocations: 197 kB / 284.1 MB, free: 15.73 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008388/0.1111, allocations: 252.6 kB / 284.3 MB, free: 15.48 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007468/0.1119, allocations: 190.1 kB / 284.5 MB, free: 15.3 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1119, allocations: 0 / 284.5 MB, free: 15.3 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002131/0.114, allocations: 0.6251 MB / 285.1 MB, free: 14.66 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.1141, allocations: 9.094 kB / 285.1 MB, free: 14.65 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.1141, allocations: 0 / 285.1 MB, free: 14.65 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001181/0.1153, allocations: 258.1 kB / 285.4 MB, free: 14.4 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000563/0.1159, allocations: 71.84 kB / 285.4 MB, free: 14.33 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006142/0.122, allocations: 2.752 MB / 288.2 MB, free: 11.45 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005315/0.1226, allocations: 40.03 kB / 288.2 MB, free: 11.41 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.254e-05/0.1227, allocations: 16 kB / 288.3 MB, free: 11.39 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.0002757/0.1229, allocations: 169.7 kB / 288.4 MB, free: 11.21 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.1231, allocations: 31.62 kB / 288.4 MB, free: 11.18 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001389/0.1232, allocations: 55.23 kB / 288.5 MB, free: 11.13 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.1232, allocations: 0 / 288.5 MB, free: 11.13 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.1232, allocations: 0 / 288.5 MB, free: 11.13 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/0.1235, allocations: 168.6 kB / 288.7 MB, free: 10.95 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.1236, allocations: 12 kB / 288.7 MB, free: 10.93 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005228/0.1242, allocations: 31.97 kB / 288.7 MB, free: 10.9 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/0.1244, allocations: 52.42 kB / 288.8 MB, free: 10.85 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003522/0.1279, allocations: 0.8081 MB / 289.6 MB, free: 10.03 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002738/0.1307, allocations: 0.9433 MB / 290.5 MB, free: 9.074 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008027/0.1315, allocations: 220.4 kB / 290.7 MB, free: 8.859 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003503/0.1318, allocations: 197.6 kB / 290.9 MB, free: 8.668 MB / 250.7 MB Notification: Performance of Backend: time 9.21e-07/0.1319, allocations: 4 kB / 290.9 MB, free: 8.664 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.1338, allocations: 0.6242 MB / 291.5 MB, free: 8.02 MB / 250.7 MB Notification: Performance of SimCode: time 0.002069/0.1359, allocations: 1.423 MB / 293 MB, free: 6.547 MB / 250.7 MB Notification: Performance of Templates: time 0.2179/0.3538, allocations: 6.66 MB / 299.6 MB, free: 31.55 MB / 250.7 MB