Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 101.9 kB / 16.62 MB, free: 6.809 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.001223/0.001223, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.845/1.845, allocations: 205.1 MB / 223.4 MB, free: 12.46 MB / 190.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: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 51.92 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.129, allocations: 46.62 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01036/0.1394, allocations: 8.111 MB / 334.3 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006456/0.1459, allocations: 2.7 MB / 337 MB, free: 9.922 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001482/0.1474, allocations: 31.94 kB / 337 MB, free: 9.891 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001992/0.1495, allocations: 473.4 kB / 337.4 MB, free: 9.426 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001984/0.1515, allocations: 377.3 kB / 337.8 MB, free: 9.055 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009495/0.1524, allocations: 323.7 kB / 338.1 MB, free: 8.738 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001808/0.1542, allocations: 1.503 MB / 339.6 MB, free: 7.227 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008997/0.1551, allocations: 0.6049 MB / 340.2 MB, free: 6.602 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006481/0.1558, allocations: 0.5562 MB / 340.8 MB, free: 6.043 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005884/0.1564, allocations: 0.6065 MB / 341.4 MB, free: 5.434 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000162/0.1566, allocations: 136 kB / 341.5 MB, free: 5.301 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003083/0.1569, allocations: 180 kB / 341.7 MB, free: 5.125 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002256/0.1571, allocations: 286.9 kB / 342 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005504/0.1577, allocations: 0.6725 MB / 342.7 MB, free: 4.168 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001723/0.1594, allocations: 1.686 MB / 344.3 MB, free: 2.477 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.389e-05/0.1594, allocations: 4 kB / 344.4 MB, free: 2.473 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.477e-06/0.1594, allocations: 3.938 kB / 344.4 MB, free: 2.469 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.966e-05/0.1595, allocations: 0 / 344.4 MB, free: 2.469 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002495/0.162, allocations: 1.518 MB / 345.9 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.162, allocations: 16.03 kB / 345.9 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006522/0.1627, allocations: 183.2 kB / 346.1 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001149/0.1639, allocations: 0.7783 MB / 346.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.412e-05/0.1639, allocations: 74.12 kB / 346.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.1641, allocations: 100 kB / 347 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001601/0.1657, allocations: 0.9575 MB / 348 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.41e-05/0.1657, allocations: 11.84 kB / 348 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.7e-05/0.1658, allocations: 44 kB / 348 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.142e-05/0.1659, allocations: 24 kB / 348.1 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/0.167, allocations: 0.6363 MB / 348.7 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005542/0.1726, allocations: 4.115 MB / 352.8 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00094/0.1735, allocations: 435 kB / 353.2 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002818/0.1738, allocations: 161.4 kB / 353.4 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.958e-05/0.1739, allocations: 7.75 kB / 353.4 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.508e-05/0.1739, allocations: 42.56 kB / 353.4 MB, free: 9 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 3.316e-06/0.1739, allocations: 0 / 353.4 MB, free: 9 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002553/0.1765, allocations: 1.322 MB / 354.8 MB, free: 7.605 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.1766, allocations: 110.8 kB / 354.9 MB, free: 7.473 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001107/0.1777, allocations: 0.9018 MB / 355.8 MB, free: 6.547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.359e-05/0.1777, allocations: 29.7 kB / 355.8 MB, free: 6.512 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004285/0.1782, allocations: 0.5954 MB / 356.4 MB, free: 5.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.1783, allocations: 145.9 kB / 356.5 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002179/0.1785, allocations: 134.5 kB / 356.7 MB, free: 5.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1787, allocations: 337.9 kB / 357 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003255/0.179, allocations: 176.8 kB / 357.2 MB, free: 5.113 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005582/0.1796, allocations: 497.6 kB / 357.7 MB, free: 4.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008478/0.1804, allocations: 0.6792 MB / 358.3 MB, free: 3.656 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/0.1805, allocations: 4 kB / 358.3 MB, free: 3.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001177/0.1816, allocations: 0.75 MB / 359.1 MB, free: 2.891 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.1817, allocations: 8.781 kB / 359.1 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.1817, allocations: 12 kB / 359.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001792/0.1819, allocations: 40.84 kB / 359.1 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005513/0.1824, allocations: 167.7 kB / 359.3 MB, free: 2.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.1836, allocations: 1.386 MB / 360.7 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006081/0.1842, allocations: 43.83 kB / 360.7 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.368e-05/0.1843, allocations: 36.09 kB / 360.8 MB, free: 1.062 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005941/0.1849, allocations: 358 kB / 361.1 MB, free: 0.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004737/0.1853, allocations: 477.7 kB / 361.6 MB, free: 96 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008216/0.1862, allocations: 0.6713 MB / 362.3 MB, free: 15.28 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.32e-06/0.1862, allocations: 7.938 kB / 362.3 MB, free: 15.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001098/0.1873, allocations: 0.7158 MB / 363 MB, free: 14.54 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.1873, allocations: 8 kB / 363 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.1873, allocations: 12 kB / 363 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.895e-05/0.1874, allocations: 41.38 kB / 363 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004934/0.188, allocations: 167.7 kB / 363.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009614/0.1889, allocations: 1.39 MB / 364.6 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005543/0.1895, allocations: 32 kB / 364.6 MB, free: 12.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-05/0.1895, allocations: 39.98 kB / 364.7 MB, free: 12.72 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0002483/0.1898, allocations: 232 kB / 364.9 MB, free: 12.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.1899, allocations: 94.88 kB / 365 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008524/0.1908, allocations: 431.1 kB / 365.4 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.1908, allocations: 4 kB / 365.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1908, allocations: 0 / 365.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.1908, allocations: 3.984 kB / 365.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/0.1929, allocations: 1.39 MB / 366.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.1929, allocations: 4 kB / 366.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003661/0.1933, allocations: 79.89 kB / 366.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.088e-05/0.1934, allocations: 12.86 kB / 366.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.209e-05/0.1934, allocations: 19.98 kB / 366.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009682/0.1944, allocations: 1.363 MB / 368.3 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.1944, allocations: 8.188 kB / 368.3 MB, free: 8.852 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.1954, allocations: 0.7133 MB / 369 MB, free: 8.098 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002691/0.1957, allocations: 203.9 kB / 369.2 MB, free: 7.879 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.1958, allocations: 15.98 kB / 369.2 MB, free: 7.863 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003858/0.1962, allocations: 19.98 kB / 369.2 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.247e-05/0.1963, allocations: 31.91 kB / 369.3 MB, free: 7.812 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/0.1963, allocations: 12 kB / 369.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008407/0.1972, allocations: 0.6095 MB / 369.9 MB, free: 7.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1972, allocations: 0 / 369.9 MB, free: 7.18 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001207/0.1984, allocations: 352 kB / 370.2 MB, free: 6.836 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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 (39): * Single equations (assignments): 38 * 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.0002464/0.1987, allocations: 115.2 kB / 370.3 MB, free: 6.715 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001729/0.2004, allocations: 0.9922 MB / 371.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.2004, allocations: 0 / 371.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003902/0.2008, allocations: 284 kB / 371.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/0.2021, allocations: 246.5 kB / 371.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003366/0.2055, allocations: 2.264 MB / 374.1 MB, free: 2.855 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006121/0.2061, allocations: 1.025 MB / 375.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000557/0.2067, allocations: 123.4 kB / 375.3 MB, free: 1.676 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001493/0.2068, allocations: 59.44 kB / 375.3 MB, free: 1.617 MB / 318.1 MB Notification: Performance of SimCode: time 1.443e-06/0.2068, allocations: 0 / 375.3 MB, free: 1.617 MB / 318.1 MB Notification: Performance of Templates: time 0.2575/0.4643, allocations: 10.58 MB / 385.9 MB, free: 49.71 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)