Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.927/1.927, allocations: 209.3 MB / 224.8 MB, free: 1.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004428/0.0004428, allocations: 15.98 kB / 282.6 MB, free: 9.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0873/0.08777, allocations: 48.7 MB / 331.3 MB, free: 8.941 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3323/0.4201, allocations: 82.45 MB / 413.7 MB, free: 2.738 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.4204, allocations: 70.75 kB / 413.8 MB, free: 2.672 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05971/0.4801, allocations: 14.19 MB / 428 MB, free: 4.453 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.349e-06/0.4802, allocations: 0 / 428 MB, free: 4.453 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.361e-05/0.4802, allocations: 12 kB / 428 MB, free: 4.441 MB / 346.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.002157/0.4824, allocations: 0.9266 MB / 428.9 MB, free: 3.465 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.4825, allocations: 8.031 kB / 428.9 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002207/0.4827, allocations: 75.16 kB / 429 MB, free: 3.383 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.4839, allocations: 487.6 kB / 429.5 MB, free: 2.859 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.321e-05/0.484, allocations: 37 kB / 429.5 MB, free: 2.824 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.4841, allocations: 55.91 kB / 429.6 MB, free: 2.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.4854, allocations: 0.4913 MB / 430.1 MB, free: 2.258 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/0.4855, allocations: 4 kB / 430.1 MB, free: 2.254 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.019e-05/0.4855, allocations: 24.34 kB / 430.1 MB, free: 2.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.4856, allocations: 11.95 kB / 430.1 MB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/0.4866, allocations: 362.4 kB / 430.4 MB, free: 1.863 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00447/0.4911, allocations: 1.764 MB / 432.2 MB, free: 16 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.4926, allocations: 485.2 kB / 432.7 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.452e-05/0.4927, allocations: 12.08 kB / 432.7 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/0.4927, allocations: 38.56 kB / 432.7 MB, free: 15.47 MB / 362.7 MB Notification: Performance of pre-optimization done (n=38): time 5.765e-06/0.4927, allocations: 4 kB / 432.7 MB, free: 15.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.001778/0.4945, allocations: 0.5409 MB / 433.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.4947, allocations: 136.5 kB / 433.4 MB, free: 14.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007063/0.4954, allocations: 402 kB / 433.8 MB, free: 14.35 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.844e-05/0.4955, allocations: 41.64 kB / 433.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003085/0.4958, allocations: 343.1 kB / 434.2 MB, free: 13.96 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.496, allocations: 145.8 kB / 434.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.585e-05/0.496, allocations: 12 kB / 434.3 MB, free: 13.81 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.4962, allocations: 330.8 kB / 434.7 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005649/0.4968, allocations: 177 kB / 434.8 MB, free: 13.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006838/0.4975, allocations: 309 kB / 435.1 MB, free: 12.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00061/0.4981, allocations: 199.5 kB / 435.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.4982, allocations: 4 kB / 435.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001479/0.4996, allocations: 0.5244 MB / 435.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.4997, allocations: 4 kB / 435.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.4997, allocations: 4 kB / 435.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.118e-05/0.4998, allocations: 12.25 kB / 435.9 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006233/0.5004, allocations: 123.8 kB / 436 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.774e-05/0.5004, allocations: 11.94 kB / 436 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005484/0.501, allocations: 63.52 kB / 436.1 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.397e-05/0.5011, allocations: 24.38 kB / 436.1 MB, free: 11.98 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.000376/0.5015, allocations: 181.7 kB / 436.3 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.5016, allocations: 59.3 kB / 436.3 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001482/0.5018, allocations: 61.16 kB / 436.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.739e-06/0.5018, allocations: 4 kB / 436.4 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.5018, allocations: 4 kB / 436.4 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.761e-06/0.5018, allocations: 0 / 436.4 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.5029, allocations: 0.5439 MB / 436.9 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.495e-06/0.5029, allocations: 4 kB / 436.9 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000644/0.5036, allocations: 87.89 kB / 437 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.552e-06/0.5036, allocations: 3.953 kB / 437 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.912e-05/0.5037, allocations: 12 kB / 437 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.194e-05/0.5037, allocations: 7.984 kB / 437.1 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.101e-06/0.5037, allocations: 3.938 kB / 437.1 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001856/0.5056, allocations: 0.8102 MB / 437.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000291/0.5059, allocations: 168.4 kB / 438 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.506, allocations: 8 kB / 438 MB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004835/0.5065, allocations: 35.97 kB / 438.1 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.5066, allocations: 35.94 kB / 438.1 MB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.312e-05/0.5067, allocations: 8 kB / 438.1 MB, free: 9.844 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005311/0.5072, allocations: 315.6 kB / 438.4 MB, free: 9.539 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.36e-07/0.5072, allocations: 0 / 438.4 MB, free: 9.539 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007143/0.508, allocations: 127.5 kB / 438.5 MB, free: 9.414 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.0001812/0.5082, allocations: 115.2 kB / 438.7 MB, free: 9.293 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00123/0.5094, allocations: 428.2 kB / 439.1 MB, free: 8.875 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5094, allocations: 0 / 439.1 MB, free: 8.875 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005548/0.51, allocations: 208 kB / 439.3 MB, free: 8.672 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009299/0.5109, allocations: 133.6 kB / 439.4 MB, free: 8.547 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003107/0.5141, allocations: 1.594 MB / 441 MB, free: 6.914 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006693/0.5148, allocations: 0.8946 MB / 441.9 MB, free: 5.996 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.515, allocations: 39.44 kB / 441.9 MB, free: 5.957 MB / 362.7 MB Notification: Performance of SimCode: time 1.678e-06/0.515, allocations: 0 / 441.9 MB, free: 5.957 MB / 362.7 MB Notification: Performance of Templates: time 0.01337/0.5284, allocations: 6.688 MB / 448.6 MB, free: 15.27 MB / 378.7 MB