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.0009215/0.0009216, allocations: 103.8 kB / 17.01 MB, free: 6.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001025/0.001025, allocations: 192.4 kB / 17.91 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.512/1.512, allocations: 227.7 MB / 246.4 MB, free: 11.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2255/0.2255, allocations: 46.18 MB / 344.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003248/0.0003252, allocations: 12.2 kB / 418.8 MB, free: 20.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1604, allocations: 63.58 MB / 482.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.006576/0.167, allocations: 3.909 MB / 486.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003636/0.1707, allocations: 1.532 MB / 487.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000811/0.1715, allocations: 15.94 kB / 487.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009629/0.1725, allocations: 242.5 kB / 488.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007695/0.1733, allocations: 122.9 kB / 488.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006687/0.174, allocations: 179.8 kB / 488.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.1752, allocations: 0.7329 MB / 489.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005476/0.1758, allocations: 271.2 kB / 489.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005101/0.1763, allocations: 230.8 kB / 489.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004432/0.1767, allocations: 262.5 kB / 489.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.786e-05/0.1768, allocations: 28 kB / 489.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.353e-05/0.1769, allocations: 32 kB / 489.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.177, allocations: 103.5 kB / 490 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000164/0.1772, allocations: 149.3 kB / 490.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006255/0.1778, allocations: 0.6898 MB / 490.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1779, allocations: 0 / 490.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1779, allocations: 0 / 490.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.1779, allocations: 0 / 490.9 MB, free: 12.04 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.001465/0.1794, allocations: 0.9155 MB / 491.8 MB, free: 11.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.1794, allocations: 8.031 kB / 491.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.1795, allocations: 79.06 kB / 491.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006657/0.1802, allocations: 488.5 kB / 492.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.1802, allocations: 45.31 kB / 492.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-05/0.1803, allocations: 60 kB / 492.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.1814, allocations: 0.6028 MB / 493.1 MB, free: 9.738 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.154e-05/0.1814, allocations: 0 / 493.1 MB, free: 9.738 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.538e-05/0.1815, allocations: 28 kB / 493.1 MB, free: 9.711 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.1815, allocations: 12 kB / 493.1 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008823/0.1824, allocations: 437 kB / 493.5 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003032/0.1854, allocations: 2.191 MB / 495.7 MB, free: 6.988 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.1865, allocations: 0.6143 MB / 496.3 MB, free: 6.328 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003201/0.1869, allocations: 177.3 kB / 496.5 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.614e-05/0.1869, allocations: 15.97 kB / 496.5 MB, free: 6.137 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.1869, allocations: 30.56 kB / 496.5 MB, free: 6.098 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.413e-06/0.1869, allocations: 7.938 kB / 496.6 MB, free: 6.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002138/0.1891, allocations: 1.192 MB / 497.7 MB, free: 4.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/0.1891, allocations: 63.34 kB / 497.8 MB, free: 4.746 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000581/0.1897, allocations: 0.5106 MB / 498.3 MB, free: 4.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.1898, allocations: 33.7 kB / 498.4 MB, free: 4.191 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002349/0.19, allocations: 344.1 kB / 498.7 MB, free: 3.848 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.1901, allocations: 122.2 kB / 498.8 MB, free: 3.727 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.978e-05/0.1901, allocations: 12 kB / 498.8 MB, free: 3.715 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1903, allocations: 362.8 kB / 499.2 MB, free: 3.352 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003033/0.1906, allocations: 144.8 kB / 499.3 MB, free: 3.211 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003432/0.191, allocations: 228.9 kB / 499.5 MB, free: 2.953 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/0.1913, allocations: 179.5 kB / 499.7 MB, free: 2.777 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1913, allocations: 4 kB / 499.7 MB, free: 2.773 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008339/0.1921, allocations: 497.4 kB / 0.4885 GB, free: 2.277 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.1923, allocations: 152.8 kB / 0.4886 GB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.1923, allocations: 8 kB / 0.4886 GB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001381/0.1924, allocations: 24.84 kB / 0.4887 GB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004137/0.1928, allocations: 103.9 kB / 0.4888 GB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009439/0.1938, allocations: 1.277 MB / 0.49 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.194, allocations: 36.17 kB / 0.49 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.62e-05/0.1941, allocations: 16 kB / 0.4901 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.41e-06/0.1941, allocations: 4 kB / 0.4901 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005927/0.1947, allocations: 376.3 kB / 0.4904 GB, free: 124 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.1947, allocations: 0 / 0.4904 GB, free: 124 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.648e-05/0.1948, allocations: 28.8 kB / 0.4904 GB, free: 92 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003299/0.1951, allocations: 91.83 kB / 0.4905 GB, free: 0 / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008849/0.196, allocations: 1.284 MB / 0.4918 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001794/0.1962, allocations: 16 kB / 0.4918 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.11e-05/0.1962, allocations: 16 kB / 0.4918 GB, free: 14.55 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.0002622/0.1965, allocations: 261.2 kB / 0.4921 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.86e-05/0.1966, allocations: 63.28 kB / 0.4921 GB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001192/0.1967, allocations: 53.3 kB / 0.4922 GB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.1967, allocations: 4 kB / 0.4922 GB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1967, allocations: 0 / 0.4922 GB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.1967, allocations: 3.984 kB / 0.4922 GB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001576/0.1983, allocations: 1.096 MB / 0.4933 GB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1983, allocations: 0 / 0.4933 GB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003424/0.1987, allocations: 83.95 kB / 0.4933 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-05/0.1988, allocations: 24.84 kB / 0.4934 GB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.1988, allocations: 4 kB / 0.4934 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008961/0.1997, allocations: 1.28 MB / 0.4946 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.1997, allocations: 7.984 kB / 0.4946 GB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.2008, allocations: 0.6621 MB / 0.4953 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.2009, allocations: 128.4 kB / 0.4954 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.267e-05/0.201, allocations: 12 kB / 0.4954 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002537/0.2012, allocations: 39.92 kB / 0.4954 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.115e-05/0.2013, allocations: 19.97 kB / 0.4955 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.2013, allocations: 12 kB / 0.4955 GB, free: 10.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004093/0.2017, allocations: 358.9 kB / 0.4958 GB, free: 10.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2018, allocations: 0 / 0.4958 GB, free: 10.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005934/0.2024, allocations: 184 kB / 0.496 GB, free: 10.03 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.0001512/0.2025, allocations: 106 kB / 0.4961 GB, free: 9.914 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001269/0.2038, allocations: 0.759 MB / 0.4968 GB, free: 9.129 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2038, allocations: 0 / 0.4968 GB, free: 9.129 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004106/0.2042, allocations: 291 kB / 0.4971 GB, free: 8.832 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006445/0.2049, allocations: 92.94 kB / 0.4972 GB, free: 8.746 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/0.207, allocations: 1.566 MB / 0.4987 GB, free: 7.145 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004712/0.2075, allocations: 0.8902 MB / 0.4996 GB, free: 6.223 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002354/0.2078, allocations: 60.38 kB / 0.4997 GB, free: 6.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.2079, allocations: 39.44 kB / 0.4997 GB, free: 6.121 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2079, allocations: 0 / 0.4997 GB, free: 6.121 MB / 382.1 MB Notification: Performance of Templates: time 0.01248/0.2204, allocations: 4.993 MB / 0.5046 GB, free: 1.164 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)