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.001861/0.001861, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002112/0.002112, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2418/0.2418, allocations: 46.12 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003128/0.003128, allocations: 80.73 kB / 417.7 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.152, allocations: 62.45 MB / 480.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.006554/0.1586, allocations: 4.544 MB / 484.7 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003511/0.1621, allocations: 1.651 MB / 486.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004056/0.1625, allocations: 19.88 kB / 486.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008069/0.1634, allocations: 298.2 kB / 486.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003745/0.1638, allocations: 158.5 kB / 486.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005206/0.1643, allocations: 275.6 kB / 487 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009233/0.1652, allocations: 0.8343 MB / 487.9 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000588/0.1658, allocations: 402.2 kB / 488.3 MB, free: 13 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004788/0.1663, allocations: 298.7 kB / 488.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004172/0.1668, allocations: 346.3 kB / 488.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.1669, allocations: 80 kB / 489 MB, free: 12.29 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001219/0.167, allocations: 80 kB / 489.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.1672, allocations: 167.3 kB / 489.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003622/0.1676, allocations: 378 kB / 489.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009769/0.1685, allocations: 0.9032 MB / 490.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.678e-06/0.1686, allocations: 0 / 490.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1686, allocations: 3.938 kB / 490.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.1686, allocations: 0 / 490.5 MB, free: 10.77 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.002005/0.1706, allocations: 1.017 MB / 491.5 MB, free: 9.699 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.1707, allocations: 8.031 kB / 491.5 MB, free: 9.691 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.1708, allocations: 83.91 kB / 491.6 MB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000747/0.1716, allocations: 489.5 kB / 492.1 MB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.033e-05/0.1717, allocations: 45.69 kB / 492.1 MB, free: 9.051 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.766e-05/0.1718, allocations: 68.31 kB / 492.2 MB, free: 8.984 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.1728, allocations: 0.5875 MB / 492.8 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/0.1729, allocations: 7.906 kB / 492.8 MB, free: 8.367 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.33e-05/0.1729, allocations: 24 kB / 492.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.173, allocations: 20 kB / 492.8 MB, free: 8.324 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009039/0.1739, allocations: 421 kB / 493.2 MB, free: 7.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003323/0.1772, allocations: 2.175 MB / 495.4 MB, free: 5.637 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.1784, allocations: 0.5588 MB / 496 MB, free: 5.035 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003534/0.1788, allocations: 167.4 kB / 496.1 MB, free: 4.871 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.992e-05/0.1788, allocations: 4 kB / 496.1 MB, free: 4.867 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.257e-05/0.1789, allocations: 42.5 kB / 496.2 MB, free: 4.816 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.944e-06/0.1789, allocations: 0 / 496.2 MB, free: 4.816 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.00242/0.1813, allocations: 1.138 MB / 497.3 MB, free: 3.605 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.017e-05/0.1814, allocations: 59.41 kB / 497.4 MB, free: 3.535 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006727/0.182, allocations: 0.5106 MB / 497.9 MB, free: 3.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.981e-05/0.1821, allocations: 37.7 kB / 497.9 MB, free: 2.977 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002833/0.1824, allocations: 340.1 kB / 498.3 MB, free: 2.637 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001032/0.1825, allocations: 130.2 kB / 498.4 MB, free: 2.508 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.1826, allocations: 70.14 kB / 498.5 MB, free: 2.434 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.1828, allocations: 366.8 kB / 498.8 MB, free: 2.066 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003332/0.1832, allocations: 146.5 kB / 499 MB, free: 1.922 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003809/0.1836, allocations: 224.8 kB / 499.2 MB, free: 1.668 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006705/0.1842, allocations: 359.9 kB / 499.5 MB, free: 1.285 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1843, allocations: 3.938 kB / 499.5 MB, free: 1.281 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000899/0.1852, allocations: 477.2 kB / 500 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.352e-05/0.1852, allocations: 10.5 kB / 0.4883 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.1852, allocations: 288 / 0.4883 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001696/0.1854, allocations: 32.78 kB / 0.4883 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004141/0.1858, allocations: 103.9 kB / 0.4884 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.1871, allocations: 1.372 MB / 0.4898 GB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002659/0.1874, allocations: 27.97 kB / 0.4898 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.047e-05/0.1875, allocations: 20.09 kB / 0.4898 GB, free: 15.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000444/0.1879, allocations: 253 kB / 0.49 GB, free: 14.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003278/0.1883, allocations: 206.9 kB / 0.4902 GB, free: 14.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005492/0.1888, allocations: 328.1 kB / 0.4906 GB, free: 14.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.593e-06/0.1888, allocations: 0 / 0.4906 GB, free: 14.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0007756/0.1896, allocations: 450 kB / 0.491 GB, free: 13.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.1896, allocations: 4 kB / 0.491 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.1896, allocations: 7.984 kB / 0.491 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.776e-05/0.1897, allocations: 24.8 kB / 0.491 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003466/0.1901, allocations: 96.17 kB / 0.4911 GB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/0.1912, allocations: 1.383 MB / 0.4925 GB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002187/0.1914, allocations: 19.94 kB / 0.4925 GB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.346e-05/0.1915, allocations: 16 kB / 0.4925 GB, free: 12.11 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001683/0.1916, allocations: 213.9 kB / 0.4927 GB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.092e-05/0.1917, allocations: 55.34 kB / 0.4927 GB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.1919, allocations: 57.36 kB / 0.4928 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.1919, allocations: 4 kB / 0.4928 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.1919, allocations: 11.86 kB / 0.4928 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1919, allocations: 0 / 0.4928 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001775/0.1937, allocations: 1.059 MB / 0.4939 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.1937, allocations: 4 kB / 0.4939 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003453/0.194, allocations: 67.89 kB / 0.4939 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.785e-05/0.1941, allocations: 28.91 kB / 0.4939 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.1942, allocations: 4 kB / 0.494 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001038/0.1952, allocations: 1.386 MB / 0.4953 GB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.1952, allocations: 4.031 kB / 0.4953 GB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.1963, allocations: 0.6266 MB / 0.4959 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.1965, allocations: 140.4 kB / 0.4961 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.511e-05/0.1965, allocations: 7.984 kB / 0.4961 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002688/0.1968, allocations: 27.98 kB / 0.4961 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.222e-05/0.1969, allocations: 19.97 kB / 0.4961 GB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-05/0.1969, allocations: 12 kB / 0.4961 GB, free: 8.145 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004611/0.1974, allocations: 366.9 kB / 0.4965 GB, free: 7.789 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1974, allocations: 0 / 0.4965 GB, free: 7.789 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006784/0.1981, allocations: 180 kB / 0.4966 GB, free: 7.613 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001489/0.1983, allocations: 111.2 kB / 0.4967 GB, free: 7.492 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.1998, allocations: 0.7515 MB / 0.4975 GB, free: 6.715 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.1998, allocations: 0 / 0.4975 GB, free: 6.715 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004631/0.2002, allocations: 274.5 kB / 0.4977 GB, free: 6.434 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007491/0.201, allocations: 110.3 kB / 0.4979 GB, free: 6.328 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002334/0.2033, allocations: 1.287 MB / 0.4991 GB, free: 5.008 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005498/0.2039, allocations: 0.8902 MB / 0.5 GB, free: 4.086 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002383/0.2042, allocations: 60.38 kB / 0.5 GB, free: 4.023 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.2043, allocations: 39.44 kB / 0.5001 GB, free: 3.984 MB / 382.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2043, allocations: 0 / 0.5001 GB, free: 3.984 MB / 382.1 MB Notification: Performance of Templates: time 0.2509/0.4552, allocations: 5.477 MB / 0.5054 GB, free: 40.8 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)