Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.01025/0.01025, allocations: 101.7 kB / 15.73 MB, free: 6.043 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.002125/0.002125, allocations: 196 kB / 16.67 MB, free: 5.977 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.768/1.768, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.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.001318/0.001318, allocations: 51.08 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1132, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01171/0.1249, allocations: 8.127 MB / 381.3 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006503/0.1315, allocations: 2.747 MB / 384.1 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001231/0.1328, allocations: 31.88 kB / 384.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00164/0.1345, allocations: 0.5317 MB / 384.6 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001285/0.1358, allocations: 440.5 kB / 385 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007765/0.1365, allocations: 359.5 kB / 385.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001669/0.1382, allocations: 1.503 MB / 386.9 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008805/0.1391, allocations: 0.6203 MB / 387.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007195/0.1398, allocations: 0.5524 MB / 388.1 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006108/0.1405, allocations: 0.6026 MB / 388.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001842/0.1407, allocations: 144 kB / 388.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003269/0.141, allocations: 176 kB / 389 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002214/0.1412, allocations: 294.9 kB / 389.3 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005992/0.1418, allocations: 0.6647 MB / 389.9 MB, free: 464 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001777/0.1436, allocations: 1.728 MB / 391.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1436, allocations: 0 / 391.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1436, allocations: 4 kB / 391.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.657e-05/0.1437, allocations: 0 / 391.7 MB, free: 14.71 MB / 334.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.002491/0.1462, allocations: 1.507 MB / 393.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.1462, allocations: 8.031 kB / 393.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006782/0.1469, allocations: 187.2 kB / 393.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001307/0.1482, allocations: 0.8017 MB / 394.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.895e-05/0.1483, allocations: 77.94 kB / 394.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.1484, allocations: 99.91 kB / 394.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.1501, allocations: 0.9536 MB / 395.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.414e-05/0.1501, allocations: 4 kB / 395.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.503e-05/0.1502, allocations: 44 kB / 395.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.23e-05/0.1503, allocations: 24 kB / 395.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.1515, allocations: 0.6324 MB / 396 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006024/0.1575, allocations: 4.092 MB / 400.1 MB, free: 5.934 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.1586, allocations: 423.2 kB / 400.5 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002968/0.1589, allocations: 160.8 kB / 400.7 MB, free: 5.352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.676e-05/0.1589, allocations: 4 kB / 400.7 MB, free: 5.348 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.159, allocations: 42.55 kB / 400.7 MB, free: 5.297 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.234e-06/0.159, allocations: 0 / 400.7 MB, free: 5.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002954/0.1619, allocations: 1.323 MB / 402 MB, free: 3.902 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.81e-05/0.162, allocations: 106.8 kB / 402.1 MB, free: 3.773 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001345/0.1634, allocations: 0.8979 MB / 403 MB, free: 2.852 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/0.1634, allocations: 33.7 kB / 403.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004401/0.1639, allocations: 0.5954 MB / 403.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.164, allocations: 149.9 kB / 403.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001973/0.1642, allocations: 134.5 kB / 403.9 MB, free: 1.918 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1644, allocations: 334 kB / 404.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003241/0.1647, allocations: 172.8 kB / 404.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006209/0.1653, allocations: 497.7 kB / 404.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.1664, allocations: 0.6868 MB / 405.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.1664, allocations: 4 kB / 405.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001332/0.1677, allocations: 0.7466 MB / 406.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/0.1678, allocations: 12 kB / 406.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.1678, allocations: 8 kB / 406.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002089/0.168, allocations: 40.78 kB / 406.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005664/0.1686, allocations: 172.1 kB / 406.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.17, allocations: 1.39 MB / 408 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006593/0.1707, allocations: 39.92 kB / 408 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/0.1708, allocations: 32 kB / 408.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006789/0.1715, allocations: 350.1 kB / 408.4 MB, free: 13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005299/0.172, allocations: 485.7 kB / 408.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008434/0.1729, allocations: 0.6598 MB / 409.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.851e-06/0.1729, allocations: 8 kB / 409.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001165/0.174, allocations: 0.72 MB / 410.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1741, allocations: 12 kB / 410.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.1741, allocations: 8 kB / 410.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001054/0.1742, allocations: 32.86 kB / 410.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005444/0.1748, allocations: 175.6 kB / 410.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.1758, allocations: 1.379 MB / 411.9 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005638/0.1764, allocations: 39.92 kB / 411.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.1764, allocations: 40.16 kB / 411.9 MB, free: 9.016 MB / 350.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.0002572/0.1767, allocations: 239.8 kB / 412.2 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.1768, allocations: 94.78 kB / 412.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000912/0.1778, allocations: 427.2 kB / 412.7 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.1778, allocations: 4 kB / 412.7 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1778, allocations: 4 kB / 412.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.353e-06/0.1778, allocations: 3.938 kB / 412.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002315/0.1801, allocations: 1.379 MB / 414.1 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.1801, allocations: 4 kB / 414.1 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003533/0.1805, allocations: 71.91 kB / 414.1 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.575e-05/0.1806, allocations: 24.78 kB / 414.2 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.773e-05/0.1807, allocations: 12 kB / 414.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.1817, allocations: 1.375 MB / 415.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.575e-06/0.1818, allocations: 12.17 kB / 415.6 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001135/0.1829, allocations: 0.7183 MB / 416.3 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003303/0.1832, allocations: 207.9 kB / 416.5 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001213/0.1834, allocations: 12 kB / 416.5 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004006/0.1838, allocations: 19.98 kB / 416.5 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.671e-05/0.1839, allocations: 31.95 kB / 416.5 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-05/0.1839, allocations: 8 kB / 416.6 MB, free: 4.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008922/0.1848, allocations: 0.6134 MB / 417.2 MB, free: 3.465 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1848, allocations: 0 / 417.2 MB, free: 3.465 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001395/0.1862, allocations: 344 kB / 417.5 MB, free: 3.129 MB / 350.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.0002347/0.1864, allocations: 139 kB / 417.6 MB, free: 2.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002026/0.1885, allocations: 0.974 MB / 418.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/0.1885, allocations: 3.938 kB / 418.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006016/0.1891, allocations: 284 kB / 418.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/0.1907, allocations: 247.2 kB / 419.1 MB, free: 1.449 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004167/0.1949, allocations: 1.819 MB / 421 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007327/0.1957, allocations: 1.025 MB / 422 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000551/0.1962, allocations: 119.4 kB / 422.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001495/0.1964, allocations: 59.44 kB / 422.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1964, allocations: 4 kB / 422.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of Templates: time 0.02319/0.2196, allocations: 10.8 MB / 433 MB, free: 3.52 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)