Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.UnitDeduction.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadModel(ModelicaTest): time 2.092/2.092, allocations: 235.1 MB / 243 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.518e-05/1.527e-05, allocations: 0 / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2656, allocations: 54.85 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1355/0.4012, allocations: 87.74 MB / 445.8 MB, free: 7.066 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.4015, allocations: 67.97 kB / 445.8 MB, free: 7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05337/0.4548, allocations: 13.18 MB / 459 MB, free: 9.785 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.489e-06/0.4549, allocations: 0 / 459 MB, free: 9.785 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.27e-05/0.455, allocations: 12 kB / 459 MB, free: 9.773 MB / 394.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.001666/0.4566, allocations: 0.8195 MB / 459.8 MB, free: 8.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.4567, allocations: 11.97 kB / 459.9 MB, free: 8.898 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.4569, allocations: 83 kB / 459.9 MB, free: 8.816 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009881/0.4579, allocations: 464.1 kB / 460.4 MB, free: 8.32 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.399e-05/0.458, allocations: 20.34 kB / 460.4 MB, free: 8.301 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.4581, allocations: 39.86 kB / 460.4 MB, free: 8.262 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007215/0.4588, allocations: 270.6 kB / 460.7 MB, free: 7.996 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008888/0.4597, allocations: 380 kB / 461.1 MB, free: 7.609 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.601e-05/0.4598, allocations: 4 kB / 461.1 MB, free: 7.605 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.976e-05/0.4598, allocations: 4 kB / 461.1 MB, free: 7.602 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.4598, allocations: 8 kB / 461.1 MB, free: 7.594 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004095/0.464, allocations: 1.694 MB / 462.8 MB, free: 5.828 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007989/0.4648, allocations: 337.7 kB / 463.1 MB, free: 5.48 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000295/0.4651, allocations: 121.7 kB / 463.2 MB, free: 5.355 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.828e-05/0.4652, allocations: 12 kB / 463.3 MB, free: 5.344 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/0.4652, allocations: 38.59 kB / 463.3 MB, free: 5.297 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 3.789e-06/0.4652, allocations: 0 / 463.3 MB, free: 5.297 MB / 394.7 MB Notification: Performance of matching and sorting (n=38): time 0.0008466/0.4661, allocations: 318.2 kB / 463.6 MB, free: 4.977 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.527e-05/0.4662, allocations: 110.8 kB / 463.7 MB, free: 4.844 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005869/0.4668, allocations: 369.3 kB / 464.1 MB, free: 4.477 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.698e-05/0.4668, allocations: 25.7 kB / 464.1 MB, free: 4.445 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000271/0.4671, allocations: 347.1 kB / 464.4 MB, free: 4.105 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/0.4673, allocations: 145.8 kB / 464.6 MB, free: 3.961 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.683e-05/0.4673, allocations: 0 / 464.6 MB, free: 3.961 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.4675, allocations: 330.8 kB / 464.9 MB, free: 3.629 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003104/0.4678, allocations: 117.1 kB / 465 MB, free: 3.516 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004277/0.4683, allocations: 251 kB / 465.3 MB, free: 3.223 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003604/0.4686, allocations: 143.9 kB / 465.4 MB, free: 3.082 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.014e-06/0.4687, allocations: 0 / 465.4 MB, free: 3.082 MB / 394.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000988/0.4697, allocations: 412.5 kB / 465.8 MB, free: 2.672 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00079/0.4705, allocations: 1.394 MB / 467.2 MB, free: 1.172 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.4705, allocations: 7.938 kB / 467.2 MB, free: 1.164 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.552e-05/0.4705, allocations: 8 kB / 467.2 MB, free: 1.156 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006374/0.4712, allocations: 127.8 kB / 467.3 MB, free: 1.031 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.4712, allocations: 11.94 kB / 467.3 MB, free: 1.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004872/0.4717, allocations: 47.66 kB / 467.4 MB, free: 0.9727 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.378e-05/0.4718, allocations: 20 kB / 467.4 MB, free: 0.9531 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.4718, allocations: 8 kB / 467.4 MB, free: 0.9453 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008418/0.4727, allocations: 339.2 kB / 467.8 MB, free: 0.6133 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.4727, allocations: 4 kB / 467.8 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.4727, allocations: 7.938 kB / 467.8 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005782/0.4733, allocations: 116.3 kB / 467.9 MB, free: 500 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.713e-05/0.4733, allocations: 15.89 kB / 467.9 MB, free: 484 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002959/0.4736, allocations: 47.45 kB / 467.9 MB, free: 436 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.543e-05/0.4737, allocations: 20 kB / 468 MB, free: 416 kB / 394.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 () * 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.0001619/0.4739, allocations: 117.5 kB / 468.1 MB, free: 292 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000175/0.4741, allocations: 63.33 kB / 468.1 MB, free: 228 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001566/0.4742, allocations: 49.5 kB / 468.2 MB, free: 172 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.141e-06/0.4743, allocations: 4 kB / 468.2 MB, free: 168 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.525e-06/0.4743, allocations: 0 / 468.2 MB, free: 168 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.4743, allocations: 11.94 kB / 468.2 MB, free: 156 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2382/0.7126, allocations: 474.4 kB / 468.7 MB, free: 95.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.7126, allocations: 0 / 468.7 MB, free: 95.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007428/0.7134, allocations: 88.73 kB / 468.8 MB, free: 95.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.834e-06/0.7134, allocations: 3.875 kB / 468.8 MB, free: 95.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-05/0.7134, allocations: 8.266 kB / 468.8 MB, free: 95.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.466e-06/0.7135, allocations: 1.688 kB / 468.8 MB, free: 95.88 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.949e-06/0.7135, allocations: 0.7812 kB / 468.8 MB, free: 95.88 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.7148, allocations: 0.6521 MB / 469.4 MB, free: 95.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/0.715, allocations: 163.5 kB / 469.6 MB, free: 95.55 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.617e-05/0.7151, allocations: 3.547 kB / 469.6 MB, free: 95.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005344/0.7157, allocations: 28 kB / 469.6 MB, free: 95.55 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.7158, allocations: 33.3 kB / 469.6 MB, free: 95.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.719e-05/0.7159, allocations: 12.53 kB / 469.7 MB, free: 95.55 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003803/0.7162, allocations: 277.7 kB / 469.9 MB, free: 95.46 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.362e-06/0.7163, allocations: 4.5 kB / 469.9 MB, free: 95.46 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00105/0.7173, allocations: 201.4 kB / 470.1 MB, free: 95.44 MB / 394.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 () * 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.0001533/0.7175, allocations: 111.7 kB / 470.2 MB, free: 95.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.7187, allocations: 0.5014 MB / 470.7 MB, free: 95.36 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.726e-06/0.7187, allocations: 0 / 470.7 MB, free: 95.36 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003086/0.7191, allocations: 149.1 kB / 470.9 MB, free: 95.36 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008881/0.72, allocations: 137.2 kB / 471 MB, free: 95.35 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001989/0.722, allocations: 1.002 MB / 472 MB, free: 94.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/0.7224, allocations: 0.8943 MB / 472.9 MB, free: 94.27 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002073/0.7226, allocations: 42.25 kB / 473 MB, free: 94.26 MB / 394.7 MB Notification: Performance of SimCode: time 1.602e-06/0.7227, allocations: 0 / 473 MB, free: 94.26 MB / 394.7 MB Notification: Performance of Templates: time 0.0113/0.734, allocations: 6.562 MB / 479.5 MB, free: 93.85 MB / 394.7 MB