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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.166/2.166, allocations: 234.9 MB / 250.5 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004351/0.0004352, allocations: 16 kB / 314.4 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2928, allocations: 54.85 MB / 369.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1334/0.4262, allocations: 88.5 MB / 457.7 MB, free: 4.137 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002382/0.4265, allocations: 75.95 kB / 457.8 MB, free: 4.062 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0553/0.4818, allocations: 13.3 MB / 471.1 MB, free: 6.723 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.986e-06/0.4818, allocations: 0 / 471.1 MB, free: 6.723 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.661e-05/0.4819, allocations: 12 kB / 471.1 MB, free: 6.711 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.002056/0.484, allocations: 0.9033 MB / 472 MB, free: 5.758 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.484, allocations: 8.031 kB / 472 MB, free: 5.75 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001939/0.4842, allocations: 79.06 kB / 472.1 MB, free: 5.672 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.4853, allocations: 475.6 kB / 472.6 MB, free: 5.168 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.908e-05/0.4853, allocations: 37.34 kB / 472.6 MB, free: 5.133 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.4855, allocations: 55.95 kB / 472.7 MB, free: 5.078 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.4867, allocations: 494.2 kB / 473.2 MB, free: 4.574 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.683e-05/0.4867, allocations: 4 kB / 473.2 MB, free: 4.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.106e-05/0.4868, allocations: 16 kB / 473.2 MB, free: 4.555 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.88e-05/0.4869, allocations: 8 kB / 473.2 MB, free: 4.547 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.4879, allocations: 370.1 kB / 473.5 MB, free: 4.188 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004374/0.4923, allocations: 1.772 MB / 475.3 MB, free: 2.328 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001382/0.4937, allocations: 475.9 kB / 475.8 MB, free: 1.848 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.443e-05/0.4938, allocations: 4 kB / 475.8 MB, free: 1.844 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.4938, allocations: 42.59 kB / 475.8 MB, free: 1.793 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 4.113e-06/0.4939, allocations: 0 / 475.8 MB, free: 1.793 MB / 394.7 MB Notification: Performance of matching and sorting (n=38): time 0.001785/0.4956, allocations: 0.5613 MB / 476.4 MB, free: 1.223 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.022e-05/0.4958, allocations: 106.8 kB / 476.5 MB, free: 1.094 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006714/0.4964, allocations: 393.4 kB / 476.9 MB, free: 0.6992 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.824e-05/0.4965, allocations: 37.7 kB / 476.9 MB, free: 0.6562 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002763/0.4968, allocations: 342.3 kB / 477.2 MB, free: 328 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.497, allocations: 149.9 kB / 477.4 MB, free: 176 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.353e-05/0.497, allocations: 8 kB / 477.4 MB, free: 168 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.4972, allocations: 334.8 kB / 477.7 MB, free: 15.83 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005473/0.4978, allocations: 173 kB / 477.9 MB, free: 15.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006562/0.4985, allocations: 304.1 kB / 478.2 MB, free: 15.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000591/0.4991, allocations: 191.9 kB / 478.4 MB, free: 15.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.627e-06/0.4991, allocations: 4 kB / 478.4 MB, free: 15.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001478/0.5006, allocations: 0.5282 MB / 478.9 MB, free: 14.58 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007684/0.5014, allocations: 1.395 MB / 480.3 MB, free: 13.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.5014, allocations: 7.984 kB / 480.3 MB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.51e-05/0.5014, allocations: 8 kB / 480.3 MB, free: 13.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006467/0.5021, allocations: 123.8 kB / 480.4 MB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/0.5021, allocations: 4 kB / 480.5 MB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000532/0.5027, allocations: 71.5 kB / 480.5 MB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.491e-05/0.5027, allocations: 20 kB / 480.5 MB, free: 12.85 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.5028, allocations: 7.938 kB / 480.5 MB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001258/0.504, allocations: 467.6 kB / 481 MB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.275e-06/0.5041, allocations: 4 kB / 481 MB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.5041, allocations: 4 kB / 481 MB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005736/0.5047, allocations: 119.8 kB / 481.1 MB, free: 12.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.06e-05/0.5047, allocations: 15.92 kB / 481.1 MB, free: 12.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003126/0.505, allocations: 51.77 kB / 481.2 MB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.976e-05/0.5051, allocations: 20 kB / 481.2 MB, free: 12.17 MB / 410.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.000438/0.5055, allocations: 254.5 kB / 481.5 MB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001966/0.5057, allocations: 55.34 kB / 481.5 MB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.5059, allocations: 61.08 kB / 481.6 MB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.4e-05/0.5059, allocations: 7.953 kB / 481.6 MB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.735e-06/0.5059, allocations: 7.938 kB / 481.6 MB, free: 11.78 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.865e-06/0.506, allocations: 0 / 481.6 MB, free: 11.78 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.507, allocations: 0.5478 MB / 482.1 MB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.704e-06/0.5071, allocations: 7.984 kB / 482.1 MB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006667/0.5077, allocations: 91.83 kB / 482.2 MB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.778e-06/0.5078, allocations: 0 / 482.2 MB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.651e-05/0.5078, allocations: 12 kB / 482.3 MB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.279e-06/0.5078, allocations: 4 kB / 482.3 MB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.169e-06/0.5079, allocations: 3.953 kB / 482.3 MB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001863/0.5097, allocations: 0.8017 MB / 483.1 MB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002885/0.51, allocations: 160.4 kB / 483.2 MB, free: 10.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.981e-05/0.5102, allocations: 12 kB / 483.2 MB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004872/0.5107, allocations: 35.92 kB / 483.3 MB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.5108, allocations: 35.89 kB / 483.3 MB, free: 9.984 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.923e-05/0.5108, allocations: 12 kB / 483.3 MB, free: 9.973 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005391/0.5114, allocations: 314.9 kB / 483.6 MB, free: 9.668 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.91e-07/0.5114, allocations: 0 / 483.6 MB, free: 9.668 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001042/0.5124, allocations: 219.3 kB / 483.8 MB, free: 9.453 MB / 410.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.0001893/0.5126, allocations: 117 kB / 483.9 MB, free: 9.332 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001854/0.5145, allocations: 0.653 MB / 484.6 MB, free: 8.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.305e-06/0.5145, allocations: 8.125 kB / 484.6 MB, free: 8.672 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005487/0.5151, allocations: 195.8 kB / 484.8 MB, free: 8.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009565/0.5161, allocations: 131.4 kB / 484.9 MB, free: 8.348 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002941/0.519, allocations: 1.592 MB / 486.5 MB, free: 6.719 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006692/0.5197, allocations: 0.8948 MB / 487.4 MB, free: 5.797 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002325/0.52, allocations: 39.44 kB / 487.5 MB, free: 5.758 MB / 410.7 MB Notification: Performance of SimCode: time 1.526e-06/0.52, allocations: 4 kB / 487.5 MB, free: 5.754 MB / 410.7 MB Notification: Performance of Templates: time 0.01323/0.5332, allocations: 6.643 MB / 494.1 MB, free: 15.12 MB / 426.7 MB