Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01043/0.01044, allocations: 174.6 kB / 15.12 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.937/1.937, allocations: 194.5 MB / 210.3 MB, free: 7.613 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00294/0.00294, allocations: 124.6 kB / 255.6 MB, free: 10.23 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2749/0.2749, allocations: 40.01 MB / 340.8 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004928/0.000493, allocations: 10.5 kB / 406.3 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09933/0.09986, allocations: 54.88 MB / 461.1 MB, free: 3.199 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4835/0.5834, allocations: 88.49 MB / 0.5367 GB, free: 21.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/0.5838, allocations: 70.28 kB / 0.5368 GB, free: 21.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05664/0.6404, allocations: 13.3 MB / 0.5498 GB, free: 20.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.6405, allocations: 1.406 kB / 0.5498 GB, free: 20.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.04e-05/0.6406, allocations: 20.81 kB / 0.5498 GB, free: 20.67 MB / 378.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.002467/0.6431, allocations: 0.8995 MB / 0.5507 GB, free: 20.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.6431, allocations: 8.969 kB / 0.5507 GB, free: 20.08 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001709/0.6433, allocations: 90.33 kB / 0.5508 GB, free: 20.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002014/0.6435, allocations: 74.5 kB / 0.5509 GB, free: 20.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.6447, allocations: 474.5 kB / 0.5513 GB, free: 19.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.452e-05/0.6447, allocations: 39.39 kB / 0.5514 GB, free: 19.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.6449, allocations: 54.27 kB / 0.5514 GB, free: 19.72 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.6463, allocations: 492.9 kB / 0.5519 GB, free: 19.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/0.6463, allocations: 5.5 kB / 0.5519 GB, free: 19.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.753e-05/0.6464, allocations: 17.47 kB / 0.5519 GB, free: 19.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.675e-05/0.6464, allocations: 11.94 kB / 0.5519 GB, free: 19.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.6476, allocations: 358.5 kB / 0.5523 GB, free: 19.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004951/0.6526, allocations: 1.781 MB / 0.554 GB, free: 18.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/0.6542, allocations: 473.7 kB / 0.5544 GB, free: 18.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.083e-05/0.6543, allocations: 3.875 kB / 0.5544 GB, free: 18.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.6544, allocations: 45.28 kB / 0.5545 GB, free: 18.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 3.236e-06/0.6544, allocations: 0 / 0.5545 GB, free: 18.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=38): time 0.002001/0.6564, allocations: 0.5566 MB / 0.555 GB, free: 18.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.107e-05/0.6565, allocations: 110.5 kB / 0.5551 GB, free: 18.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006114/0.6571, allocations: 391.2 kB / 0.5555 GB, free: 18.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.611e-05/0.6571, allocations: 36.8 kB / 0.5555 GB, free: 18.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000207/0.6574, allocations: 315.7 kB / 0.5558 GB, free: 18.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.6575, allocations: 141.8 kB / 0.556 GB, free: 18.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.054e-05/0.6576, allocations: 11.25 kB / 0.556 GB, free: 18.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.6577, allocations: 375 kB / 0.5564 GB, free: 17.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006318/0.6583, allocations: 167.8 kB / 0.5565 GB, free: 17.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006831/0.659, allocations: 306.4 kB / 0.5568 GB, free: 17.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006677/0.6597, allocations: 202.4 kB / 0.557 GB, free: 17.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.6597, allocations: 0 / 0.557 GB, free: 17.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001672/0.6614, allocations: 0.557 MB / 0.5575 GB, free: 17.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002939/0.6617, allocations: 1.398 MB / 0.5589 GB, free: 16.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.6617, allocations: 3.875 kB / 0.5589 GB, free: 16.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/0.6618, allocations: 7.562 kB / 0.5589 GB, free: 16.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009144/0.6627, allocations: 121.2 kB / 0.559 GB, free: 16.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.795e-05/0.6627, allocations: 14.75 kB / 0.559 GB, free: 16.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006887/0.6634, allocations: 72.09 kB / 0.5591 GB, free: 16.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.774e-05/0.6635, allocations: 19.06 kB / 0.5591 GB, free: 16.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.548e-06/0.6635, allocations: 3.812 kB / 0.5591 GB, free: 16.19 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001336/0.6649, allocations: 467.2 kB / 0.5596 GB, free: 16.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.6649, allocations: 3.781 kB / 0.5596 GB, free: 16.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.6649, allocations: 11.55 kB / 0.5596 GB, free: 16.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008144/0.6657, allocations: 121.1 kB / 0.5597 GB, free: 16.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.6658, allocations: 6.688 kB / 0.5597 GB, free: 16.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006032/0.6664, allocations: 56.95 kB / 0.5598 GB, free: 16.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-05/0.6664, allocations: 19 kB / 0.5598 GB, free: 16.11 MB / 378.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.000425/0.6669, allocations: 260.4 kB / 0.56 GB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/0.667, allocations: 61.47 kB / 0.5601 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001444/0.6672, allocations: 54.91 kB / 0.5602 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.6672, allocations: 7.828 kB / 0.5602 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.6672, allocations: 3.875 kB / 0.5602 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/0.6672, allocations: 2.719 kB / 0.5602 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009319/0.6682, allocations: 0.5334 MB / 0.5607 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.6682, allocations: 8 kB / 0.5607 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009325/0.6691, allocations: 90.25 kB / 0.5608 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.6692, allocations: 3.75 kB / 0.5608 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.356e-05/0.6692, allocations: 11.31 kB / 0.5608 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.6692, allocations: 2.672 kB / 0.5608 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.6692, allocations: 7.828 kB / 0.5608 GB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.6712, allocations: 0.8062 MB / 0.5616 GB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002436/0.6715, allocations: 164.4 kB / 0.5617 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.6716, allocations: 11.03 kB / 0.5618 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000656/0.6722, allocations: 34.5 kB / 0.5618 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.6724, allocations: 34.17 kB / 0.5618 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.614e-05/0.6724, allocations: 12.25 kB / 0.5618 GB, free: 15.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004709/0.6729, allocations: 312.2 kB / 0.5621 GB, free: 15.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6729, allocations: 0 / 0.5621 GB, free: 15.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009945/0.6739, allocations: 226.1 kB / 0.5624 GB, free: 15.11 MB / 378.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.002202/0.6761, allocations: 1.423 MB / 0.5637 GB, free: 14.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002077/0.6782, allocations: 0.6642 MB / 0.5644 GB, free: 14.19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6783, allocations: 0 / 0.5644 GB, free: 14.19 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006227/0.6789, allocations: 193.2 kB / 0.5646 GB, free: 14.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/0.6802, allocations: 143.9 kB / 0.5647 GB, free: 14.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008254/0.6885, allocations: 5.893 MB / 0.5705 GB, free: 26.43 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005459/0.6891, allocations: 0.8976 MB / 0.5713 GB, free: 25.72 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000566/0.6897, allocations: 62.14 kB / 0.5714 GB, free: 25.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003812/0.6901, allocations: 208.1 kB / 0.5716 GB, free: 25.69 MB / 394.7 MB Notification: Performance of SimCode: time 1.072e-06/0.6901, allocations: 0 / 0.5716 GB, free: 25.69 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05457/0.7447, allocations: 10.51 MB / 0.5819 GB, free: 22.39 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000264/0.745, allocations: 169.3 kB / 0.582 GB, free: 22.16 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.138/3.883, allocations: 0 / 0.582 GB, free: 22.16 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat