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.94/1.94, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.139e-05/3.161e-05, allocations: 4 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08575/0.08581, allocations: 48.71 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3435/0.4293, allocations: 82.36 MB / 408.9 MB, free: 8.129 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.4296, allocations: 61.42 kB / 409 MB, free: 8.125 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06347/0.4931, allocations: 14.17 MB / 423.1 MB, free: 13.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.918e-06/0.4932, allocations: 0 / 423.1 MB, free: 13.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.614e-05/0.4933, allocations: 19.94 kB / 423.1 MB, free: 13 MB / 330.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.00299/0.4963, allocations: 0.8278 MB / 424 MB, free: 12.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/0.4964, allocations: 8.031 kB / 424 MB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003768/0.4968, allocations: 83.02 kB / 424.1 MB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00179/0.4986, allocations: 485.1 kB / 424.5 MB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.91e-05/0.4987, allocations: 33.88 kB / 424.6 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001812/0.4989, allocations: 62.48 kB / 424.6 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001619/0.5006, allocations: 448.9 kB / 425.1 MB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.173e-05/0.5006, allocations: 3.984 kB / 425.1 MB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001059/0.5008, allocations: 20.88 kB / 425.1 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.607e-05/0.5008, allocations: 12 kB / 425.1 MB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001256/0.5021, allocations: 289.9 kB / 425.4 MB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007078/0.5092, allocations: 1.783 MB / 427.2 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.5106, allocations: 370.7 kB / 427.5 MB, free: 9.289 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004795/0.5111, allocations: 139.7 kB / 427.7 MB, free: 9.199 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.659e-05/0.5112, allocations: 4 kB / 427.7 MB, free: 9.195 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/0.5112, allocations: 41.12 kB / 427.7 MB, free: 9.148 MB / 330.7 MB Notification: Performance of pre-optimization done (n=38): time 3.655e-06/0.5112, allocations: 0 / 427.7 MB, free: 9.148 MB / 330.7 MB Notification: Performance of matching and sorting (n=38): time 0.0009504/0.5122, allocations: 331.3 kB / 428 MB, free: 8.898 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.615e-05/0.5123, allocations: 132.5 kB / 428.2 MB, free: 8.738 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006522/0.513, allocations: 394.1 kB / 428.5 MB, free: 8.422 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.517e-05/0.5131, allocations: 32.39 kB / 428.6 MB, free: 8.391 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002569/0.5133, allocations: 353.8 kB / 428.9 MB, free: 8.129 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001618/0.5135, allocations: 142.5 kB / 429.1 MB, free: 8.008 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.31e-05/0.5136, allocations: 18.5 kB / 429.1 MB, free: 7.996 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.5137, allocations: 333.4 kB / 429.4 MB, free: 7.672 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003358/0.5141, allocations: 131.2 kB / 429.5 MB, free: 7.59 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004673/0.5146, allocations: 270.6 kB / 429.8 MB, free: 7.344 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003881/0.515, allocations: 157.9 kB / 430 MB, free: 7.242 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.673e-06/0.515, allocations: 4 kB / 430 MB, free: 7.238 MB / 330.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001061/0.5161, allocations: 453.6 kB / 430.4 MB, free: 6.906 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.5161, allocations: 4 kB / 430.4 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.5161, allocations: 4 kB / 430.4 MB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.5162, allocations: 8 kB / 430.4 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006807/0.5168, allocations: 128.4 kB / 430.5 MB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.982e-05/0.5169, allocations: 8 kB / 430.6 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005319/0.5174, allocations: 58.77 kB / 430.6 MB, free: 6.711 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.193e-05/0.5175, allocations: 20.42 kB / 430.6 MB, free: 6.695 MB / 330.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.000172/0.5177, allocations: 135.8 kB / 430.8 MB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.5179, allocations: 63.3 kB / 430.8 MB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001637/0.518, allocations: 61.72 kB / 430.9 MB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.5181, allocations: 8 kB / 430.9 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.491e-06/0.5181, allocations: 0 / 430.9 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.316e-06/0.5181, allocations: 0 / 430.9 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.5191, allocations: 0.5369 MB / 431.4 MB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.029e-06/0.5192, allocations: 0 / 431.4 MB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007152/0.5199, allocations: 94.45 kB / 431.5 MB, free: 5.914 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.492e-06/0.5199, allocations: 0 / 431.5 MB, free: 5.914 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.622e-05/0.52, allocations: 13.45 kB / 431.5 MB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.778e-06/0.52, allocations: 7.938 kB / 431.5 MB, free: 5.898 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.742e-06/0.52, allocations: 3.984 kB / 431.5 MB, free: 5.895 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.5212, allocations: 0.6846 MB / 432.2 MB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002771/0.5215, allocations: 176.3 kB / 432.4 MB, free: 5.172 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.838e-05/0.5216, allocations: 10.62 kB / 432.4 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000503/0.5222, allocations: 38.28 kB / 432.4 MB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.5223, allocations: 31.27 kB / 432.5 MB, free: 5.109 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.571e-05/0.5223, allocations: 8 kB / 432.5 MB, free: 5.102 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004859/0.5228, allocations: 314.5 kB / 432.8 MB, free: 4.867 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.505e-06/0.5229, allocations: 0 / 432.8 MB, free: 4.867 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007007/0.5236, allocations: 122.2 kB / 432.9 MB, free: 4.758 MB / 330.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.0001852/0.5238, allocations: 114.2 kB / 433 MB, free: 4.645 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008094/0.5246, allocations: 340.1 kB / 433.4 MB, free: 4.414 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.225e-06/0.5246, allocations: 0 / 433.4 MB, free: 4.414 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003449/0.525, allocations: 161.9 kB / 433.5 MB, free: 4.305 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009201/0.5259, allocations: 144.3 kB / 433.7 MB, free: 4.195 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002237/0.5282, allocations: 1.026 MB / 434.7 MB, free: 3.223 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006726/0.5289, allocations: 0.8947 MB / 435.6 MB, free: 2.305 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002192/0.5291, allocations: 43.42 kB / 435.6 MB, free: 2.262 MB / 330.7 MB Notification: Performance of SimCode: time 1.737e-06/0.5291, allocations: 0 / 435.6 MB, free: 2.262 MB / 330.7 MB Notification: Performance of Templates: time 0.01362/0.5427, allocations: 6.685 MB / 442.3 MB, free: 11.68 MB / 346.7 MB