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.205/2.205, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.5e-05/2.51e-05, allocations: 4 kB / 309.7 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3236, allocations: 54.86 MB / 364.5 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1351/0.4587, allocations: 88.41 MB / 452.9 MB, free: 8.074 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/0.459, allocations: 68.5 kB / 453 MB, free: 8.008 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05715/0.5162, allocations: 13.27 MB / 466.3 MB, free: 10.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.319e-06/0.5162, allocations: 0 / 466.3 MB, free: 10.73 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.892e-05/0.5163, allocations: 19.94 kB / 466.3 MB, free: 10.71 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.001757/0.5181, allocations: 0.8099 MB / 467.1 MB, free: 9.852 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.5181, allocations: 12.03 kB / 467.1 MB, free: 9.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001986/0.5184, allocations: 79.06 kB / 467.2 MB, free: 9.762 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/0.5194, allocations: 455.8 kB / 467.6 MB, free: 9.273 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.461e-05/0.5195, allocations: 37.34 kB / 467.7 MB, free: 9.238 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.5196, allocations: 71.78 kB / 467.8 MB, free: 9.168 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.5207, allocations: 438.7 kB / 468.2 MB, free: 8.719 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.273e-05/0.5207, allocations: 0 / 468.2 MB, free: 8.719 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.548e-05/0.5208, allocations: 16.75 kB / 468.2 MB, free: 8.703 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.904e-05/0.5208, allocations: 12 kB / 468.2 MB, free: 8.691 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007617/0.5216, allocations: 302.8 kB / 468.5 MB, free: 8.395 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004526/0.5261, allocations: 1.77 MB / 470.3 MB, free: 6.539 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009157/0.5271, allocations: 367.4 kB / 470.6 MB, free: 6.164 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003461/0.5275, allocations: 138.8 kB / 470.8 MB, free: 6.023 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.358e-05/0.5275, allocations: 8 kB / 470.8 MB, free: 6.016 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/0.5276, allocations: 46.5 kB / 470.8 MB, free: 5.961 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 3.813e-06/0.5276, allocations: 0 / 470.8 MB, free: 5.961 MB / 394.7 MB Notification: Performance of matching and sorting (n=38): time 0.0009296/0.5285, allocations: 346 kB / 471.2 MB, free: 5.613 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.158e-05/0.5286, allocations: 106.8 kB / 471.3 MB, free: 5.484 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006484/0.5293, allocations: 392 kB / 471.6 MB, free: 5.098 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.521e-05/0.5294, allocations: 33.7 kB / 471.7 MB, free: 5.059 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/0.5297, allocations: 350.5 kB / 472 MB, free: 4.715 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.5298, allocations: 145.9 kB / 472.2 MB, free: 4.57 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-05/0.5299, allocations: 12 kB / 472.2 MB, free: 4.559 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.5301, allocations: 336.3 kB / 472.5 MB, free: 4.223 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003567/0.5304, allocations: 129.1 kB / 472.6 MB, free: 4.098 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004769/0.5309, allocations: 252.2 kB / 472.9 MB, free: 3.797 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004268/0.5314, allocations: 166.9 kB / 473 MB, free: 3.637 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.942e-06/0.5314, allocations: 0 / 473 MB, free: 3.637 MB / 394.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001093/0.5325, allocations: 456.5 kB / 473.5 MB, free: 3.184 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007925/0.5333, allocations: 1.395 MB / 474.9 MB, free: 1.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.5333, allocations: 0 / 474.9 MB, free: 1.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.5334, allocations: 12 kB / 474.9 MB, free: 1.668 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007211/0.5341, allocations: 123.8 kB / 475 MB, free: 1.547 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.304e-05/0.5342, allocations: 11.98 kB / 475 MB, free: 1.535 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000557/0.5347, allocations: 63.52 kB / 475.1 MB, free: 1.473 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.212e-05/0.5348, allocations: 20 kB / 475.1 MB, free: 1.453 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.5348, allocations: 4 kB / 475.1 MB, free: 1.449 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001006/0.5358, allocations: 407.2 kB / 475.5 MB, free: 1.051 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.271e-06/0.5359, allocations: 4.438 kB / 475.5 MB, free: 1.047 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.5359, allocations: 11.95 kB / 475.5 MB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000594/0.5365, allocations: 119.8 kB / 475.6 MB, free: 0.918 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.5365, allocations: 11.94 kB / 475.7 MB, free: 0.9062 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.5369, allocations: 51.61 kB / 475.7 MB, free: 0.8555 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.804e-05/0.5369, allocations: 20 kB / 475.7 MB, free: 0.8359 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 () * 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.0001778/0.5371, allocations: 128.9 kB / 475.8 MB, free: 0.7031 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001794/0.5373, allocations: 55.34 kB / 475.9 MB, free: 0.6484 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001748/0.5375, allocations: 65.2 kB / 476 MB, free: 0.582 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.831e-06/0.5375, allocations: 7.953 kB / 476 MB, free: 0.5742 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.697e-06/0.5375, allocations: 0 / 476 MB, free: 0.5742 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.172e-06/0.5375, allocations: 0 / 476 MB, free: 0.5742 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.5386, allocations: 0.5516 MB / 476.5 MB, free: 15.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.5387, allocations: 0 / 476.5 MB, free: 15.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006828/0.5393, allocations: 91.89 kB / 476.6 MB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.014e-05/0.5394, allocations: 0 / 476.6 MB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.999e-05/0.5395, allocations: 12 kB / 476.6 MB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.107e-05/0.5395, allocations: 4 kB / 476.6 MB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.547e-06/0.5395, allocations: 7.938 kB / 476.6 MB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.5408, allocations: 0.6729 MB / 477.3 MB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002711/0.5411, allocations: 160.5 kB / 477.5 MB, free: 14.99 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.397e-05/0.5412, allocations: 12 kB / 477.5 MB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005003/0.5417, allocations: 35.94 kB / 477.5 MB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.5418, allocations: 31.89 kB / 477.5 MB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.361e-05/0.5419, allocations: 19.98 kB / 477.6 MB, free: 14.89 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005064/0.5424, allocations: 309.6 kB / 477.9 MB, free: 14.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.46e-07/0.5424, allocations: 0 / 477.9 MB, free: 14.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001029/0.5434, allocations: 219.2 kB / 478.1 MB, free: 14.38 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 () * 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.0001931/0.5437, allocations: 121 kB / 478.2 MB, free: 14.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001336/0.545, allocations: 0.5352 MB / 478.7 MB, free: 13.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.165e-06/0.545, allocations: 0 / 478.7 MB, free: 13.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003748/0.5454, allocations: 155.8 kB / 478.9 MB, free: 13.56 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.5465, allocations: 146.3 kB / 479 MB, free: 13.42 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002367/0.5489, allocations: 1.018 MB / 480 MB, free: 12.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006522/0.5496, allocations: 0.8949 MB / 480.9 MB, free: 11.45 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002502/0.5498, allocations: 43.38 kB / 481 MB, free: 11.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.657e-06/0.5498, allocations: 0 / 481 MB, free: 11.4 MB / 410.7 MB Notification: Performance of Templates: time 0.01346/0.5633, allocations: 6.626 MB / 487.6 MB, free: 4.789 MB / 410.7 MB