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.009099/0.009099, allocations: 101.5 kB / 15.73 MB, free: 5.992 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.001619/0.001619, allocations: 198.8 kB / 16.68 MB, free: 5.918 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.91/1.91, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001171/0.001171, allocations: 58.28 kB / 326.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1342, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01117/0.1454, allocations: 8.135 MB / 381.3 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007043/0.1525, allocations: 2.735 MB / 384.1 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002384/0.155, allocations: 27.94 kB / 384.1 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002759/0.1578, allocations: 0.5706 MB / 384.7 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002846/0.1607, allocations: 464.5 kB / 385.1 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001298/0.162, allocations: 363.5 kB / 385.5 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003051/0.1651, allocations: 1.507 MB / 387 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001081/0.1662, allocations: 0.6203 MB / 387.6 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001083/0.1673, allocations: 0.5641 MB / 388.2 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007009/0.168, allocations: 0.6026 MB / 388.8 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001775/0.1682, allocations: 140 kB / 388.9 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004274/0.1686, allocations: 176 kB / 389.1 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002931/0.1689, allocations: 290.9 kB / 389.3 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007732/0.1697, allocations: 0.6608 MB / 390 MB, free: 388 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002421/0.1721, allocations: 1.732 MB / 391.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.1722, allocations: 0 / 391.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.12e-06/0.1722, allocations: 4 kB / 391.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.194e-05/0.1722, allocations: 0 / 391.7 MB, free: 14.64 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.002955/0.1752, allocations: 1.507 MB / 393.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.1752, allocations: 8.031 kB / 393.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006834/0.1759, allocations: 191.2 kB / 393.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/0.1775, allocations: 0.8017 MB / 394.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.081e-05/0.1776, allocations: 77.94 kB / 394.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.1778, allocations: 99.91 kB / 394.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001669/0.1794, allocations: 0.9536 MB / 395.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.899e-05/0.1795, allocations: 0 / 395.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.013e-05/0.1796, allocations: 44 kB / 395.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.645e-05/0.1796, allocations: 24 kB / 395.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.1808, allocations: 0.6363 MB / 396.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005618/0.1864, allocations: 4.088 MB / 400.2 MB, free: 5.855 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.1875, allocations: 427.2 kB / 400.6 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003225/0.1878, allocations: 156.8 kB / 400.7 MB, free: 5.273 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.638e-05/0.1879, allocations: 4 kB / 400.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.1879, allocations: 42.56 kB / 400.8 MB, free: 5.219 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.685e-06/0.188, allocations: 0 / 400.8 MB, free: 5.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.003132/0.1911, allocations: 1.327 MB / 402.1 MB, free: 3.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.763e-05/0.1912, allocations: 106.8 kB / 402.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001666/0.1929, allocations: 0.894 MB / 403.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.175e-05/0.1929, allocations: 37.64 kB / 403.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006479/0.1936, allocations: 0.5915 MB / 403.7 MB, free: 2.129 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001809/0.1938, allocations: 145.9 kB / 403.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002528/0.194, allocations: 134.5 kB / 404 MB, free: 1.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.1942, allocations: 338 kB / 404.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003801/0.1946, allocations: 172.8 kB / 404.5 MB, free: 1.336 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006012/0.1952, allocations: 493.7 kB / 405 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.1963, allocations: 0.6868 MB / 405.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.356e-05/0.1963, allocations: 7.938 kB / 405.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001524/0.1979, allocations: 0.7508 MB / 406.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.1979, allocations: 13.09 kB / 406.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.243e-05/0.1979, allocations: 8 kB / 406.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001967/0.1981, allocations: 36.84 kB / 406.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005738/0.1987, allocations: 171.7 kB / 406.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001507/0.2002, allocations: 1.394 MB / 408.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008289/0.2011, allocations: 36.14 kB / 408.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.134e-05/0.2012, allocations: 36 kB / 408.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007251/0.2019, allocations: 354.1 kB / 408.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005727/0.2025, allocations: 477.7 kB / 408.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009996/0.2035, allocations: 0.6637 MB / 409.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.274e-05/0.2035, allocations: 4 kB / 409.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001466/0.205, allocations: 0.7193 MB / 410.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.205, allocations: 12 kB / 410.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.824e-05/0.2051, allocations: 8.781 kB / 410.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001455/0.2052, allocations: 36.86 kB / 410.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005449/0.2058, allocations: 175.7 kB / 410.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.207, allocations: 1.378 MB / 411.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007512/0.2078, allocations: 35.98 kB / 412 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.55e-05/0.2078, allocations: 36 kB / 412 MB, free: 8.941 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.0003615/0.2082, allocations: 247.9 kB / 412.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002819/0.2085, allocations: 94.78 kB / 412.3 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/0.2097, allocations: 427.2 kB / 412.7 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.2097, allocations: 4 kB / 412.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.2097, allocations: 0 / 412.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.2097, allocations: 3.938 kB / 412.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003366/0.2131, allocations: 1.383 MB / 414.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.2131, allocations: 8.156 kB / 414.1 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004016/0.2135, allocations: 71.91 kB / 414.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001339/0.2137, allocations: 24.84 kB / 414.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.732e-05/0.2137, allocations: 15.94 kB / 414.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.2153, allocations: 1.371 MB / 415.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.847e-06/0.2153, allocations: 4.031 kB / 415.6 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001453/0.2167, allocations: 0.7223 MB / 416.4 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005284/0.2173, allocations: 207.9 kB / 416.6 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002048/0.2175, allocations: 8 kB / 416.6 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005009/0.218, allocations: 23.98 kB / 416.6 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.369e-05/0.2181, allocations: 27.95 kB / 416.6 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.43e-05/0.2182, allocations: 8 kB / 416.6 MB, free: 4.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001244/0.2194, allocations: 0.6134 MB / 417.2 MB, free: 3.387 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2194, allocations: 4 kB / 417.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001995/0.2214, allocations: 347.9 kB / 417.6 MB, free: 3.043 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.0004143/0.2219, allocations: 131 kB / 417.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00244/0.2243, allocations: 0.9786 MB / 418.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.2243, allocations: 384 / 418.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006338/0.225, allocations: 286.5 kB / 419 MB, free: 1.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/0.2265, allocations: 247.6 kB / 419.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005106/0.2316, allocations: 1.826 MB / 421 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/0.2328, allocations: 1.021 MB / 422.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007244/0.2335, allocations: 123.4 kB / 422.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.2337, allocations: 59.44 kB / 422.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of SimCode: time 1.814e-06/0.2338, allocations: 0 / 422.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of Templates: time 0.03068/0.2644, allocations: 10.79 MB / 433 MB, free: 3.441 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)