Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 111.1 kB / 17.68 MB, free: 5.348 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.001643/0.001643, allocations: 192 kB / 18.61 MB, free: 4.43 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.46/1.46, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.176/0.176, allocations: 37.98 MB / 309.8 MB, free: 5.977 MB / 254.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.001388/0.001388, allocations: 63.91 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2156/0.217, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.005149/0.2222, allocations: 4.799 MB / 436.8 MB, free: 14.69 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.2242, allocations: 1.523 MB / 438.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000303/0.2245, allocations: 19.88 kB / 438.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003693/0.2249, allocations: 103.2 kB / 438.5 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006775/0.2256, allocations: 270.4 kB / 438.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003275/0.2259, allocations: 139.8 kB / 438.9 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006373/0.2266, allocations: 0.5838 MB / 439.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004177/0.227, allocations: 394.7 kB / 439.8 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003118/0.2273, allocations: 235.1 kB / 440.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00035/0.2277, allocations: 239 kB / 440.3 MB, free: 11.19 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.236e-05/0.2278, allocations: 40 kB / 440.3 MB, free: 11.15 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.318e-05/0.2278, allocations: 40 kB / 440.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.2279, allocations: 119.6 kB / 440.5 MB, free: 11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001842/0.2281, allocations: 230.9 kB / 440.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003749/0.2285, allocations: 0.4945 MB / 441.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2285, allocations: 7.922 kB / 441.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2285, allocations: 0 / 441.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.61e-05/0.2286, allocations: 0 / 441.2 MB, free: 10.27 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001188/0.2297, allocations: 0.7107 MB / 441.9 MB, free: 9.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.2298, allocations: 11.89 kB / 441.9 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.599e-05/0.2299, allocations: 44.47 kB / 442 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005634/0.2305, allocations: 424 kB / 442.4 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.701e-05/0.2306, allocations: 58.64 kB / 442.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.021e-05/0.2306, allocations: 39.98 kB / 442.5 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005411/0.2312, allocations: 428.1 kB / 442.9 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.2312, allocations: 15.77 kB / 442.9 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.2312, allocations: 12 kB / 442.9 MB, free: 8.418 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.2313, allocations: 8 kB / 442.9 MB, free: 8.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00045/0.2317, allocations: 282 kB / 443.2 MB, free: 8.133 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.2334, allocations: 1.826 MB / 445 MB, free: 6.188 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002864/0.2337, allocations: 179.7 kB / 445.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.2339, allocations: 74.55 kB / 445.3 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.2339, allocations: 4 kB / 445.3 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.972e-05/0.2339, allocations: 38.56 kB / 445.3 MB, free: 5.852 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.583e-06/0.2339, allocations: 0 / 445.3 MB, free: 5.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001131/0.2351, allocations: 0.7021 MB / 446 MB, free: 5.094 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.2351, allocations: 111.1 kB / 446.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/0.2354, allocations: 312.4 kB / 446.5 MB, free: 4.641 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.2354, allocations: 29.7 kB / 446.5 MB, free: 4.605 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.2355, allocations: 247.5 kB / 446.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.081e-05/0.2356, allocations: 71 kB / 446.8 MB, free: 4.289 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.084e-05/0.2357, allocations: 62.03 kB / 446.9 MB, free: 4.223 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.328e-05/0.2357, allocations: 342.8 kB / 447.2 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.2359, allocations: 68.62 kB / 447.3 MB, free: 3.812 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.2361, allocations: 205.5 kB / 447.5 MB, free: 3.555 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003165/0.2364, allocations: 288 kB / 447.7 MB, free: 3.215 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2364, allocations: 0 / 447.7 MB, free: 3.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004505/0.2368, allocations: 329 kB / 448.1 MB, free: 2.887 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.2369, allocations: 11.94 kB / 448.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.2369, allocations: 4 kB / 448.1 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.2369, allocations: 11.94 kB / 448.1 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002635/0.2372, allocations: 71.84 kB / 448.2 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.2372, allocations: 11.98 kB / 448.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.2374, allocations: 20.28 kB / 448.2 MB, free: 2.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.2374, allocations: 16 kB / 448.2 MB, free: 2.742 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001421/0.2376, allocations: 189.6 kB / 448.4 MB, free: 2.547 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.334e-05/0.2376, allocations: 31.56 kB / 448.4 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003192/0.2379, allocations: 188.8 kB / 448.6 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.238, allocations: 4 kB / 448.6 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.238, allocations: 0 / 448.6 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.238, allocations: 0 / 448.6 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007292/0.2387, allocations: 0.6209 MB / 449.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2387, allocations: 3.938 kB / 449.2 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002174/0.239, allocations: 43.97 kB / 449.3 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.239, allocations: 7.938 kB / 449.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.239, allocations: 0 / 449.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.239, allocations: 7.984 kB / 449.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.239, allocations: 0 / 449.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004561/0.2395, allocations: 452 kB / 449.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.425e-05/0.2395, allocations: 104.7 kB / 449.8 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.938e-05/0.2396, allocations: 4 kB / 449.8 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.2398, allocations: 16.03 kB / 449.9 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.435e-05/0.2399, allocations: 12.08 kB / 449.9 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.2399, allocations: 7.984 kB / 449.9 MB, free: 0.957 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00015/0.24, allocations: 215.1 kB / 450.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.24, allocations: 0 / 450.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003748/0.2404, allocations: 75.94 kB / 450.2 MB, free: 0.6719 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.457e-05/0.2405, allocations: 107.2 kB / 450.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003392/0.2408, allocations: 207.8 kB / 450.5 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2409, allocations: 0 / 450.5 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.241, allocations: 73.16 kB / 450.5 MB, free: 296 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006047/0.2416, allocations: 101.4 kB / 450.6 MB, free: 192 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.2431, allocations: 0.8888 MB / 451.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/0.2435, allocations: 0.8223 MB / 452.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001711/0.2437, allocations: 51.25 kB / 452.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.161e-05/0.2437, allocations: 27.44 kB / 452.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2438, allocations: 4 kB / 452.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of Templates: time 0.006915/0.2507, allocations: 3.4 MB / 455.8 MB, free: 10.95 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)