Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.456/2.456, allocations: 234.9 MB / 251.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006028/0.0006031, allocations: 19.98 kB / 314.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3877/0.3883, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.215/0.6033, allocations: 88.48 MB / 458.3 MB, free: 2.125 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/0.6037, allocations: 83.91 kB / 458.4 MB, free: 2.043 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06406/0.6678, allocations: 13.28 MB / 471.6 MB, free: 4.719 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.6678, allocations: 0 / 471.6 MB, free: 4.719 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.402e-05/0.6679, allocations: 16 kB / 471.7 MB, free: 4.703 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.002576/0.6705, allocations: 0.8955 MB / 472.5 MB, free: 3.758 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.6705, allocations: 8.031 kB / 472.6 MB, free: 3.75 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002268/0.6708, allocations: 83.06 kB / 472.6 MB, free: 3.668 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/0.6719, allocations: 475.6 kB / 473.1 MB, free: 3.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.213e-05/0.672, allocations: 41.28 kB / 473.1 MB, free: 3.121 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.6721, allocations: 55.95 kB / 473.2 MB, free: 3.066 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.6736, allocations: 498.2 kB / 473.7 MB, free: 2.559 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/0.6737, allocations: 0 / 473.7 MB, free: 2.559 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.819e-05/0.6738, allocations: 20 kB / 473.7 MB, free: 2.539 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.748e-05/0.6738, allocations: 12 kB / 473.7 MB, free: 2.527 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.6751, allocations: 358.2 kB / 474.1 MB, free: 2.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005212/0.6803, allocations: 1.784 MB / 475.8 MB, free: 316 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3204/1.001, allocations: 461.3 kB / 476.3 MB, free: 92.69 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.972e-05/1.001, allocations: 4.797 kB / 476.3 MB, free: 92.69 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/1.001, allocations: 41.7 kB / 476.3 MB, free: 92.65 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 2.925e-06/1.001, allocations: 1 kB / 476.3 MB, free: 92.65 MB / 394.7 MB Notification: Performance of matching and sorting (n=38): time 0.002638/1.004, allocations: 0.551 MB / 476.9 MB, free: 92.61 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.472e-05/1.004, allocations: 112.9 kB / 477 MB, free: 92.48 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008685/1.005, allocations: 452.3 kB / 477.4 MB, free: 92.36 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001368/1.005, allocations: 34.58 kB / 477.5 MB, free: 92.33 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002285/1.005, allocations: 343.8 kB / 477.8 MB, free: 92.15 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001904/1.005, allocations: 152.1 kB / 478 MB, free: 92.08 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.087e-05/1.005, allocations: 9.406 kB / 478 MB, free: 92.08 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.707e-05/1.005, allocations: 332.6 kB / 478.3 MB, free: 91.77 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008462/1.006, allocations: 172 kB / 478.5 MB, free: 91.77 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009256/1.007, allocations: 309.3 kB / 478.8 MB, free: 91.62 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008197/1.008, allocations: 196.9 kB / 479 MB, free: 91.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/1.008, allocations: 1.188 kB / 479 MB, free: 91.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001915/1.01, allocations: 0.5349 MB / 479.5 MB, free: 91.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001263/1.01, allocations: 192 kB / 479.7 MB, free: 91.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/1.01, allocations: 4.312 kB / 479.7 MB, free: 91.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.297e-05/1.01, allocations: 6.562 kB / 479.7 MB, free: 91.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/1.011, allocations: 131.6 kB / 479.8 MB, free: 91.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.427e-05/1.011, allocations: 8.969 kB / 479.8 MB, free: 91.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007348/1.012, allocations: 58.27 kB / 479.9 MB, free: 91.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.205e-05/1.012, allocations: 19.88 kB / 479.9 MB, free: 91.35 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/1.012, allocations: 7.125 kB / 479.9 MB, free: 91.35 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001557/1.014, allocations: 469.8 kB / 480.4 MB, free: 91.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/1.014, allocations: 3.188 kB / 480.4 MB, free: 91.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/1.014, allocations: 7.688 kB / 480.4 MB, free: 91.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008718/1.015, allocations: 117.6 kB / 480.5 MB, free: 91.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.661e-05/1.015, allocations: 10.83 kB / 480.5 MB, free: 91.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004461/1.015, allocations: 52.28 kB / 480.6 MB, free: 91.33 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.634e-05/1.015, allocations: 22.28 kB / 480.6 MB, free: 91.33 MB / 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 () * 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.0004704/1.016, allocations: 255.8 kB / 480.8 MB, free: 91.14 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002263/1.016, allocations: 59.42 kB / 480.9 MB, free: 91.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001791/1.016, allocations: 60.28 kB / 481 MB, free: 91.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/1.016, allocations: 11.52 kB / 481 MB, free: 91.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/1.016, allocations: 1.375 kB / 481 MB, free: 91.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/1.016, allocations: 1.594 kB / 481 MB, free: 91.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/1.017, allocations: 0.5381 MB / 481.5 MB, free: 90.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/1.017, allocations: 0 / 481.5 MB, free: 90.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/1.019, allocations: 92.95 kB / 481.6 MB, free: 90.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.265e-05/1.019, allocations: 2.75 kB / 481.6 MB, free: 90.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.966e-05/1.019, allocations: 13.11 kB / 481.6 MB, free: 90.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.546e-06/1.019, allocations: 4.859 kB / 481.6 MB, free: 90.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/1.019, allocations: 0 / 481.6 MB, free: 90.9 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002279/1.021, allocations: 0.7923 MB / 482.4 MB, free: 90.65 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003598/1.021, allocations: 162.6 kB / 482.6 MB, free: 90.53 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/1.022, allocations: 7.453 kB / 482.6 MB, free: 90.53 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006952/1.022, allocations: 42.41 kB / 482.6 MB, free: 90.53 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/1.022, allocations: 29.91 kB / 482.6 MB, free: 90.53 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.309e-05/1.022, allocations: 11.64 kB / 482.7 MB, free: 90.53 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005994/1.023, allocations: 311.4 kB / 483 MB, free: 90.44 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.32e-07/1.023, allocations: 5.312 kB / 483 MB, free: 90.44 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001147/1.024, allocations: 224.7 kB / 483.2 MB, free: 90.42 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 () * 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.0002051/1.024, allocations: 116.7 kB / 483.3 MB, free: 90.33 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002406/1.027, allocations: 0.6568 MB / 484 MB, free: 90.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/1.027, allocations: 1.25 kB / 484 MB, free: 90.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006896/1.028, allocations: 193.5 kB / 484.1 MB, free: 90.29 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001371/1.029, allocations: 145.5 kB / 484.3 MB, free: 90.29 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003214/1.032, allocations: 1.591 MB / 485.9 MB, free: 89.39 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/1.033, allocations: 0.8963 MB / 486.8 MB, free: 88.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003149/1.033, allocations: 45.45 kB / 486.8 MB, free: 88.67 MB / 394.7 MB Notification: Performance of SimCode: time 1.392e-06/1.033, allocations: 0 / 486.8 MB, free: 88.67 MB / 394.7 MB Notification: Performance of Templates: time 0.01561/1.049, allocations: 6.635 MB / 493.5 MB, free: 88.13 MB / 394.7 MB