Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001031/0.001031, allocations: 95.11 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001146/0.001147, allocations: 198.7 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2345/0.2345, allocations: 45.92 MB / 344 MB, free: 12.15 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000293/0.000293, allocations: 12 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1536, allocations: 63.46 MB / 481.4 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.004778/0.1584, allocations: 3.773 MB / 485.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00267/0.1611, allocations: 1.548 MB / 486.7 MB, free: 88 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003787/0.1615, allocations: 15.94 kB / 486.7 MB, free: 72 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005298/0.1621, allocations: 214.8 kB / 486.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003546/0.1625, allocations: 183.5 kB / 487.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004571/0.1629, allocations: 179.7 kB / 487.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007767/0.1637, allocations: 0.5312 MB / 487.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004433/0.1642, allocations: 275.2 kB / 488.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003303/0.1645, allocations: 222.9 kB / 488.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003271/0.1648, allocations: 262.6 kB / 488.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.667e-05/0.1649, allocations: 28 kB / 488.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.818e-05/0.165, allocations: 32 kB / 488.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.825e-05/0.1651, allocations: 107.5 kB / 488.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.1652, allocations: 145.3 kB / 488.9 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006098/0.1658, allocations: 0.6975 MB / 489.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1658, allocations: 0 / 489.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.258e-06/0.1659, allocations: 0 / 489.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.1659, allocations: 7.938 kB / 489.6 MB, free: 13.2 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001523/0.1674, allocations: 0.9077 MB / 490.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.1675, allocations: 12.03 kB / 490.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/0.1676, allocations: 79.06 kB / 490.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006723/0.1683, allocations: 484.4 kB / 491 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.573e-05/0.1683, allocations: 49.31 kB / 491.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.407e-05/0.1684, allocations: 63.98 kB / 491.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/0.1695, allocations: 0.595 MB / 491.7 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.1695, allocations: 4 kB / 491.7 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.55e-05/0.1696, allocations: 31.94 kB / 491.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/0.1696, allocations: 16 kB / 491.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008463/0.1704, allocations: 441 kB / 492.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003049/0.1735, allocations: 2.179 MB / 494.4 MB, free: 8.145 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.1747, allocations: 0.6172 MB / 495 MB, free: 7.484 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.284e-05/0.1748, allocations: 4 kB / 495 MB, free: 7.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.1748, allocations: 42.5 kB / 495.1 MB, free: 7.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.434e-06/0.1748, allocations: 0 / 495.1 MB, free: 7.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002382/0.1772, allocations: 1.189 MB / 496.3 MB, free: 6.164 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.1773, allocations: 63.41 kB / 496.3 MB, free: 6.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000567/0.1779, allocations: 0.5183 MB / 496.8 MB, free: 5.566 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.367e-05/0.1779, allocations: 33.64 kB / 496.9 MB, free: 5.527 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002282/0.1781, allocations: 336.2 kB / 497.2 MB, free: 5.191 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.754e-05/0.1782, allocations: 126.2 kB / 497.3 MB, free: 5.066 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.561e-05/0.1783, allocations: 8 kB / 497.3 MB, free: 5.059 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1784, allocations: 362.8 kB / 497.7 MB, free: 4.695 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003009/0.1787, allocations: 148.8 kB / 497.8 MB, free: 4.551 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003622/0.1791, allocations: 232.8 kB / 498.1 MB, free: 4.293 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003287/0.1794, allocations: 176.7 kB / 498.2 MB, free: 4.121 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1794, allocations: 4 kB / 498.2 MB, free: 4.117 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008322/0.1803, allocations: 0.4972 MB / 498.7 MB, free: 3.609 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003507/0.1806, allocations: 0.8653 MB / 499.6 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.1807, allocations: 4 kB / 499.6 MB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001518/0.1808, allocations: 28.8 kB / 499.6 MB, free: 2.641 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003959/0.1812, allocations: 111.8 kB / 499.7 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009874/0.1822, allocations: 1.284 MB / 0.4893 GB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.1825, allocations: 31.98 kB / 0.4893 GB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.261e-05/0.1825, allocations: 19.98 kB / 0.4893 GB, free: 1.062 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.69e-06/0.1825, allocations: 0 / 0.4893 GB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006053/0.1831, allocations: 368.4 kB / 0.4897 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/0.1831, allocations: 288 / 0.4897 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.237e-05/0.1832, allocations: 28.84 kB / 0.4897 GB, free: 0.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000334/0.1836, allocations: 95.89 kB / 0.4898 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008556/0.1844, allocations: 1.28 MB / 0.491 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001897/0.1846, allocations: 19.94 kB / 0.4911 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.207e-05/0.1847, allocations: 16 kB / 0.4911 GB, free: 15.13 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (speedController.integrator.local_reset,currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002865/0.185, allocations: 268.9 kB / 0.4913 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.5e-05/0.185, allocations: 55.53 kB / 0.4914 GB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.744e-05/0.1851, allocations: 61.28 kB / 0.4914 GB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.1852, allocations: 0 / 0.4914 GB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.1852, allocations: 4 kB / 0.4915 GB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.1852, allocations: 3.953 kB / 0.4915 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001627/0.1868, allocations: 1.092 MB / 0.4925 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.1868, allocations: 0 / 0.4925 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003481/0.1872, allocations: 71.91 kB / 0.4926 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.741e-05/0.1873, allocations: 24.91 kB / 0.4926 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.1873, allocations: 12 kB / 0.4926 GB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008752/0.1882, allocations: 1.292 MB / 0.4939 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1882, allocations: 0 / 0.4939 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.1892, allocations: 0.6851 MB / 0.4946 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.1894, allocations: 132.4 kB / 0.4947 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.254e-05/0.1894, allocations: 11.94 kB / 0.4947 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.1897, allocations: 39.97 kB / 0.4947 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.736e-05/0.1898, allocations: 19.92 kB / 0.4948 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.046e-05/0.1898, allocations: 15.94 kB / 0.4948 GB, free: 11.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004221/0.1902, allocations: 362.9 kB / 0.4951 GB, free: 10.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1902, allocations: 0 / 0.4951 GB, free: 10.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006121/0.1909, allocations: 176 kB / 0.4953 GB, free: 10.56 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (dcpm.inductor.i,dcpm.inertia.w,inertiaLoad.phi,deadTime.y,currentController.integrator.y,preFilter.y,speedController.integrator.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 (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001603/0.191, allocations: 111.2 kB / 0.4954 GB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.1923, allocations: 0.7516 MB / 0.4961 GB, free: 9.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.1923, allocations: 4 kB / 0.4961 GB, free: 9.656 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004437/0.1928, allocations: 282.9 kB / 0.4964 GB, free: 9.367 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006226/0.1934, allocations: 94.67 kB / 0.4965 GB, free: 9.281 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/0.1959, allocations: 1.577 MB / 0.498 GB, free: 7.672 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005792/0.1965, allocations: 0.9019 MB / 0.4989 GB, free: 6.734 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000269/0.1968, allocations: 72.36 kB / 0.499 GB, free: 6.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.1969, allocations: 35.44 kB / 0.499 GB, free: 6.629 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.197, allocations: 0 / 0.499 GB, free: 6.629 MB / 382.1 MB Notification: Performance of Templates: time 0.01147/0.2084, allocations: 5.014 MB / 0.5039 GB, free: 1.648 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)