Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.UnitDeduction.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadModel(ModelicaTest): time 1.829/1.829, allocations: 209.2 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004278/0.0004278, allocations: 12 kB / 283.1 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4601/0.4605, allocations: 48.7 MB / 331.8 MB, free: 6.492 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2169/0.6775, allocations: 82.44 MB / 414.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003486/0.6779, allocations: 75.95 kB / 414.3 MB, free: 11.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09309/0.771, allocations: 14.19 MB / 428.5 MB, free: 13.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.7711, allocations: 0 / 428.5 MB, free: 13.69 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.939e-05/0.7712, allocations: 12 kB / 428.5 MB, free: 13.68 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002792/0.774, allocations: 0.9192 MB / 429.4 MB, free: 12.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.774, allocations: 16.03 kB / 429.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002562/0.7743, allocations: 79.11 kB / 429.5 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/0.7756, allocations: 483.6 kB / 430 MB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.441e-05/0.7757, allocations: 37 kB / 430 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.7759, allocations: 55.91 kB / 430.1 MB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.7775, allocations: 0.4991 MB / 430.6 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.825e-05/0.7775, allocations: 0 / 430.6 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.101e-05/0.7776, allocations: 20 kB / 430.6 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.926e-05/0.7776, allocations: 16 kB / 430.6 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001297/0.7789, allocations: 358.3 kB / 431 MB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005553/0.7845, allocations: 1.776 MB / 432.7 MB, free: 9.242 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001827/0.7864, allocations: 477.4 kB / 433.2 MB, free: 8.758 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.915e-05/0.7865, allocations: 7.953 kB / 433.2 MB, free: 8.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/0.7865, allocations: 38.59 kB / 433.3 MB, free: 8.703 MB / 362.7 MB Notification: Performance of pre-optimization done (n=38): time 3.046e-06/0.7866, allocations: 0 / 433.3 MB, free: 8.703 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.002231/0.7888, allocations: 0.5522 MB / 433.8 MB, free: 8.141 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.312e-05/0.7889, allocations: 136.5 kB / 433.9 MB, free: 7.977 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008165/0.7897, allocations: 462.8 kB / 434.4 MB, free: 7.516 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.785e-05/0.7898, allocations: 37.7 kB / 434.4 MB, free: 7.473 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002842/0.7901, allocations: 335.1 kB / 434.8 MB, free: 7.141 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001938/0.7903, allocations: 153.8 kB / 434.9 MB, free: 6.988 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.804e-05/0.7904, allocations: 8 kB / 434.9 MB, free: 6.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.7905, allocations: 330.8 kB / 435.2 MB, free: 6.648 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007033/0.7913, allocations: 177 kB / 435.4 MB, free: 6.473 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008429/0.7921, allocations: 301 kB / 435.7 MB, free: 6.125 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007577/0.7929, allocations: 207.5 kB / 435.9 MB, free: 5.922 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.7929, allocations: 0 / 435.9 MB, free: 5.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001791/0.7947, allocations: 0.5204 MB / 436.4 MB, free: 5.395 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.7948, allocations: 8.625 kB / 436.4 MB, free: 5.387 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.7948, allocations: 4 kB / 436.4 MB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.597e-05/0.7948, allocations: 4 kB / 436.4 MB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009545/0.7958, allocations: 132.1 kB / 436.6 MB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.652e-05/0.7958, allocations: 4 kB / 436.6 MB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000736/0.7966, allocations: 71.44 kB / 436.7 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.422e-05/0.7966, allocations: 20 kB / 436.7 MB, free: 5.156 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 63 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004258/0.7971, allocations: 189.7 kB / 436.9 MB, free: 4.961 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.7973, allocations: 59.3 kB / 436.9 MB, free: 4.902 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000176/0.7974, allocations: 57.16 kB / 437 MB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.7975, allocations: 4 kB / 437 MB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.7975, allocations: 0 / 437 MB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.7975, allocations: 3.984 kB / 437 MB, free: 4.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.7987, allocations: 0.5439 MB / 437.5 MB, free: 4.246 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.7987, allocations: 0 / 437.5 MB, free: 4.246 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.7997, allocations: 99.88 kB / 437.6 MB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.7998, allocations: 0 / 437.6 MB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.659e-05/0.7998, allocations: 15.95 kB / 437.6 MB, free: 4.133 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.7998, allocations: 0 / 437.6 MB, free: 4.133 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.7999, allocations: 4 kB / 437.6 MB, free: 4.129 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002305/0.8022, allocations: 0.7968 MB / 438.4 MB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003268/0.8025, allocations: 164.5 kB / 438.6 MB, free: 3.133 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001289/0.8027, allocations: 12 kB / 438.6 MB, free: 3.121 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006712/0.8034, allocations: 43.92 kB / 438.7 MB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.8035, allocations: 27.95 kB / 438.7 MB, free: 3.051 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4e-05/0.8035, allocations: 12 kB / 438.7 MB, free: 3.039 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006187/0.8042, allocations: 314.9 kB / 439 MB, free: 2.734 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.8042, allocations: 0 / 439 MB, free: 2.734 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007398/0.8049, allocations: 131.5 kB / 439.1 MB, free: 2.605 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001968/0.8051, allocations: 114.4 kB / 439.2 MB, free: 2.484 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.8068, allocations: 428.7 kB / 439.7 MB, free: 2.066 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.8068, allocations: 0 / 439.7 MB, free: 2.066 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007286/0.8075, allocations: 195.8 kB / 439.8 MB, free: 1.875 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.8089, allocations: 142.7 kB / 440 MB, free: 1.738 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003595/0.8125, allocations: 1.597 MB / 441.6 MB, free: 108 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006415/0.8132, allocations: 0.8946 MB / 442.5 MB, free: 15.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003108/0.8135, allocations: 51.31 kB / 442.5 MB, free: 15.13 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.8136, allocations: 0 / 442.5 MB, free: 15.13 MB / 378.7 MB Notification: Performance of Templates: time 0.01731/0.8309, allocations: 6.687 MB / 449.2 MB, free: 8.449 MB / 378.7 MB