Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 193 kB / 16.13 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.79/1.79, allocations: 205.1 MB / 222 MB, free: 4.773 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3432/0.3432, allocations: 39.94 MB / 309.3 MB, free: 9.676 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002294/0.002294, allocations: 67.89 kB / 376.9 MB, free: 13.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1615, allocations: 56.88 MB / 433.8 MB, free: 4.434 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.006791/0.1684, allocations: 4.021 MB / 437.8 MB, free: 392 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003274/0.1717, allocations: 1.24 MB / 439.1 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008597/0.1726, allocations: 23.88 kB / 439.1 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005661/0.1732, allocations: 87.22 kB / 439.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001003/0.1742, allocations: 142.9 kB / 439.3 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.1754, allocations: 351.6 kB / 439.6 MB, free: 14.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001453/0.1768, allocations: 0.7993 MB / 440.4 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005969/0.1774, allocations: 284.2 kB / 440.7 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004885/0.1779, allocations: 286.5 kB / 441 MB, free: 13.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003421/0.1783, allocations: 306.2 kB / 441.3 MB, free: 12.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.978e-05/0.1784, allocations: 36 kB / 441.3 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.308e-05/0.1785, allocations: 40 kB / 441.4 MB, free: 12.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.1786, allocations: 123.4 kB / 441.5 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003906/0.179, allocations: 321.9 kB / 441.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008357/0.1798, allocations: 0.7238 MB / 442.5 MB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.1799, allocations: 0 / 442.5 MB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.1799, allocations: 0 / 442.5 MB, free: 11.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.1799, allocations: 0 / 442.5 MB, free: 11.63 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.001817/0.1817, allocations: 1.067 MB / 443.6 MB, free: 10.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.1818, allocations: 12.03 kB / 443.6 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.1819, allocations: 91.81 kB / 443.7 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007022/0.1826, allocations: 0.5033 MB / 444.2 MB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.203e-05/0.1827, allocations: 41.69 kB / 444.2 MB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.16e-05/0.1828, allocations: 67.84 kB / 444.3 MB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.1839, allocations: 0.6115 MB / 444.9 MB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.1839, allocations: 3.938 kB / 444.9 MB, free: 9.086 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.91e-05/0.1839, allocations: 24 kB / 445 MB, free: 9.062 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.184, allocations: 12 kB / 445 MB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007242/0.1847, allocations: 386.2 kB / 445.3 MB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003721/0.1884, allocations: 3.005 MB / 448.3 MB, free: 5.523 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008993/0.1893, allocations: 441.8 kB / 448.8 MB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003271/0.1897, allocations: 169.6 kB / 448.9 MB, free: 4.902 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.672e-05/0.1897, allocations: 8 kB / 449 MB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.1898, allocations: 46.53 kB / 449 MB, free: 4.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 1.573e-06/0.1898, allocations: 3.938 kB / 449 MB, free: 4.836 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001165/0.1909, allocations: 0.5363 MB / 449.5 MB, free: 4.293 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.039e-05/0.191, allocations: 106.8 kB / 449.6 MB, free: 4.164 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005656/0.1916, allocations: 0.5548 MB / 450.2 MB, free: 3.602 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.1916, allocations: 33.7 kB / 450.2 MB, free: 3.562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00024/0.1919, allocations: 376 kB / 450.6 MB, free: 3.191 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.192, allocations: 153.8 kB / 450.7 MB, free: 3.039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.1922, allocations: 122.2 kB / 450.9 MB, free: 2.914 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1923, allocations: 374.8 kB / 451.2 MB, free: 2.539 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003817/0.1927, allocations: 179.4 kB / 451.4 MB, free: 2.363 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005237/0.1932, allocations: 393 kB / 451.8 MB, free: 1.883 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008524/0.1941, allocations: 0.5675 MB / 452.4 MB, free: 1.223 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.1941, allocations: 4 kB / 452.4 MB, free: 1.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001083/0.1952, allocations: 0.6526 MB / 453 MB, free: 0.5586 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.1952, allocations: 8.688 kB / 453 MB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.1953, allocations: 4 kB / 453 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.1953, allocations: 19.94 kB / 453 MB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004976/0.1958, allocations: 143.7 kB / 453.2 MB, free: 396 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.1958, allocations: 11.94 kB / 453.2 MB, free: 384 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003502/0.1962, allocations: 75.34 kB / 453.3 MB, free: 308 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.838e-05/0.1962, allocations: 28 kB / 453.3 MB, free: 280 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.2395/0.4357, allocations: 301.5 kB / 453.6 MB, free: 51.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005578/0.4363, allocations: 379.8 kB / 454 MB, free: 51.69 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007227/0.4371, allocations: 0.5514 MB / 454.5 MB, free: 51.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.629e-06/0.4371, allocations: 2.781 kB / 454.5 MB, free: 51.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001055/0.4382, allocations: 0.6375 MB / 455.2 MB, free: 51.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.4382, allocations: 7.719 kB / 455.2 MB, free: 51.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.4382, allocations: 8.344 kB / 455.2 MB, free: 51.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.368e-06/0.4382, allocations: 9.156 kB / 455.2 MB, free: 51.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004628/0.4387, allocations: 138 kB / 455.3 MB, free: 51.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.4387, allocations: 14.56 kB / 455.3 MB, free: 51.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/0.4391, allocations: 55.25 kB / 455.4 MB, free: 51.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.592e-05/0.4391, allocations: 34.64 kB / 455.4 MB, free: 51.41 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001676/0.4393, allocations: 218.3 kB / 455.6 MB, free: 51.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.4394, allocations: 67.22 kB / 455.7 MB, free: 51.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.4396, allocations: 77.75 kB / 455.8 MB, free: 51.22 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.4396, allocations: 5.844 kB / 455.8 MB, free: 51.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.4396, allocations: 0 / 455.8 MB, free: 51.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.4396, allocations: 0 / 455.8 MB, free: 51.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006531/0.4403, allocations: 0.5797 MB / 456.4 MB, free: 51.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.4403, allocations: 0 / 456.4 MB, free: 51.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004489/0.4407, allocations: 85.58 kB / 456.4 MB, free: 51.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.4408, allocations: 3.5 kB / 456.4 MB, free: 51.03 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.148e-05/0.4408, allocations: 13.91 kB / 456.5 MB, free: 51.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.4408, allocations: 2.844 kB / 456.5 MB, free: 51.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4408, allocations: 0 / 456.5 MB, free: 51.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.4419, allocations: 0.7796 MB / 457.2 MB, free: 50.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001406/0.442, allocations: 175 kB / 457.4 MB, free: 50.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.614e-05/0.4421, allocations: 10.53 kB / 457.4 MB, free: 50.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003219/0.4424, allocations: 24.48 kB / 457.4 MB, free: 50.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.411e-05/0.4425, allocations: 34.88 kB / 457.5 MB, free: 50.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/0.4425, allocations: 16.89 kB / 457.5 MB, free: 50.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003121/0.4429, allocations: 375.6 kB / 457.9 MB, free: 50.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.32e-07/0.4429, allocations: 0 / 457.9 MB, free: 50.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007194/0.4436, allocations: 248.7 kB / 458.1 MB, free: 50.3 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,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) * 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 (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.806e-05/0.4437, allocations: 112.8 kB / 458.2 MB, free: 50.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.4449, allocations: 0.7177 MB / 458.9 MB, free: 50.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4449, allocations: 0 / 458.9 MB, free: 50.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003328/0.4452, allocations: 188.8 kB / 459.1 MB, free: 49.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009719/0.4462, allocations: 169.8 kB / 459.3 MB, free: 49.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.4482, allocations: 1.657 MB / 460.9 MB, free: 48.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.4485, allocations: 0.9095 MB / 461.9 MB, free: 48.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003272/0.4488, allocations: 71.25 kB / 461.9 MB, free: 48.17 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.4489, allocations: 42.52 kB / 462 MB, free: 48.16 MB / 382.1 MB Notification: Performance of SimCode: time 4.3e-07/0.449, allocations: 0 / 462 MB, free: 48.16 MB / 382.1 MB Notification: Performance of Templates: time 0.009684/0.4586, allocations: 6 MB / 468 MB, free: 47.76 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1)