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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.923/1.923, allocations: 209.4 MB / 217.3 MB, free: 4.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.809e-05/1.811e-05, allocations: 4 kB / 271.3 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2594, allocations: 48.68 MB / 320 MB, free: 14.43 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1211/0.3806, allocations: 81.69 MB / 401.7 MB, free: 14.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002077/0.3808, allocations: 63.97 kB / 401.7 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05694/0.4378, allocations: 14.09 MB / 415.8 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.838e-06/0.4378, allocations: 0 / 415.8 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.319e-05/0.4379, allocations: 12 kB / 415.8 MB, free: 0.5859 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.001705/0.4396, allocations: 0.8184 MB / 416.7 MB, free: 15.72 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.4397, allocations: 12.03 kB / 416.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001907/0.4399, allocations: 87.02 kB / 416.8 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.4409, allocations: 487.9 kB / 417.2 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.43e-05/0.441, allocations: 19.88 kB / 417.3 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.789e-05/0.4411, allocations: 36 kB / 417.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007084/0.4418, allocations: 270.6 kB / 417.6 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009086/0.4428, allocations: 392.9 kB / 417.9 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.4428, allocations: 3.938 kB / 417.9 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.269e-05/0.4429, allocations: 4 kB / 417.9 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.4429, allocations: 11.95 kB / 418 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004189/0.4471, allocations: 1.698 MB / 419.7 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008076/0.4479, allocations: 344 kB / 420 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002798/0.4482, allocations: 125.7 kB / 420.1 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.758e-05/0.4483, allocations: 4 kB / 420.1 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.796e-05/0.4483, allocations: 38.52 kB / 420.2 MB, free: 12.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=38): time 3.145e-06/0.4483, allocations: 0 / 420.2 MB, free: 12.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.0008118/0.4492, allocations: 314 kB / 420.5 MB, free: 11.74 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.699e-05/0.4493, allocations: 132.5 kB / 420.6 MB, free: 11.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005698/0.4499, allocations: 365.5 kB / 421 MB, free: 11.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.612e-05/0.4499, allocations: 25.7 kB / 421 MB, free: 11.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002851/0.4502, allocations: 347 kB / 421.3 MB, free: 10.85 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001596/0.4504, allocations: 145.8 kB / 421.5 MB, free: 10.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.644e-05/0.4504, allocations: 0 / 421.5 MB, free: 10.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.4506, allocations: 330.8 kB / 421.8 MB, free: 10.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003108/0.4509, allocations: 117.1 kB / 421.9 MB, free: 10.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004422/0.4514, allocations: 251.9 kB / 422.1 MB, free: 9.953 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003579/0.4518, allocations: 151.5 kB / 422.3 MB, free: 9.805 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.732e-06/0.4518, allocations: 4 kB / 422.3 MB, free: 9.801 MB / 362.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009482/0.4527, allocations: 397 kB / 422.7 MB, free: 9.406 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.4528, allocations: 11.95 kB / 422.7 MB, free: 9.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.4528, allocations: 4 kB / 422.7 MB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.4528, allocations: 8.438 kB / 422.7 MB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006378/0.4535, allocations: 127.8 kB / 422.8 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/0.4535, allocations: 7.984 kB / 422.8 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004905/0.454, allocations: 51.58 kB / 422.9 MB, free: 9.199 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.695e-05/0.4541, allocations: 28 kB / 422.9 MB, free: 9.172 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 () * 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.0001527/0.4542, allocations: 116.7 kB / 423 MB, free: 9.051 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001568/0.4544, allocations: 59.34 kB / 423.1 MB, free: 8.992 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001508/0.4546, allocations: 65.45 kB / 423.2 MB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.61e-06/0.4546, allocations: 4 kB / 423.2 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.819e-06/0.4546, allocations: 0 / 423.2 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.241e-06/0.4546, allocations: 3.984 kB / 423.2 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009336/0.4556, allocations: 477.7 kB / 423.6 MB, free: 8.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.8e-06/0.4556, allocations: 4 kB / 423.6 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006288/0.4562, allocations: 95.83 kB / 423.7 MB, free: 8.312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.145e-06/0.4563, allocations: 0 / 423.7 MB, free: 8.312 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.397e-05/0.4563, allocations: 7.984 kB / 423.7 MB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.965e-06/0.4563, allocations: 3.938 kB / 423.7 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.314e-06/0.4564, allocations: 7.953 kB / 423.7 MB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/0.4575, allocations: 0.6613 MB / 424.4 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002673/0.4578, allocations: 160.5 kB / 424.6 MB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.901e-05/0.4579, allocations: 4 kB / 424.6 MB, free: 7.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005045/0.4584, allocations: 35.92 kB / 424.6 MB, free: 7.395 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.872e-05/0.4586, allocations: 31.95 kB / 424.6 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.844e-05/0.4586, allocations: 12 kB / 424.6 MB, free: 7.352 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004541/0.4591, allocations: 279 kB / 424.9 MB, free: 7.082 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.4591, allocations: 0 / 424.9 MB, free: 7.082 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006806/0.4598, allocations: 107.7 kB / 425 MB, free: 6.977 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 () * 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.0001699/0.46, allocations: 106.9 kB / 425.1 MB, free: 6.867 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007447/0.4607, allocations: 319.5 kB / 425.4 MB, free: 6.555 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.244e-06/0.4607, allocations: 0 / 425.4 MB, free: 6.555 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003192/0.4611, allocations: 147.9 kB / 425.6 MB, free: 6.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008813/0.462, allocations: 143.2 kB / 425.7 MB, free: 6.273 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002132/0.4641, allocations: 1.003 MB / 426.7 MB, free: 5.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006367/0.4648, allocations: 0.8905 MB / 427.6 MB, free: 4.312 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002122/0.465, allocations: 43.42 kB / 427.7 MB, free: 4.27 MB / 362.7 MB Notification: Performance of SimCode: time 1.52e-06/0.465, allocations: 0 / 427.7 MB, free: 4.27 MB / 362.7 MB Notification: Performance of Templates: time 0.01264/0.4777, allocations: 6.625 MB / 434.3 MB, free: 13.66 MB / 378.7 MB