Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001349/0.001354, allocations: 117.7 kB / 17.7 MB, free: 5.301 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.00144/0.00144, allocations: 187 kB / 18.63 MB, free: 4.375 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.501/1.501, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1814/0.1814, allocations: 37.97 MB / 309.8 MB, free: 5.988 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.001492/0.001492, allocations: 59.91 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.2217, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.004708/0.2264, allocations: 4.544 MB / 436.6 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00164/0.2281, allocations: 1.531 MB / 438.1 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/0.2282, allocations: 15.94 kB / 438.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003503/0.2286, allocations: 115.2 kB / 438.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004629/0.2291, allocations: 278.3 kB / 438.5 MB, free: 13 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002068/0.2293, allocations: 111.8 kB / 438.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005468/0.2299, allocations: 0.5058 MB / 439.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002064/0.2301, allocations: 157.7 kB / 439.3 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.2303, allocations: 203.1 kB / 439.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002284/0.2305, allocations: 207.1 kB / 439.7 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.709e-05/0.2306, allocations: 28 kB / 439.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.484e-05/0.2306, allocations: 28 kB / 439.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.172e-05/0.2307, allocations: 103.7 kB / 439.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.2308, allocations: 179 kB / 440 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.2311, allocations: 386.6 kB / 440.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2311, allocations: 0 / 440.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2311, allocations: 0 / 440.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.2312, allocations: 4 kB / 440.4 MB, free: 11.12 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0008685/0.232, allocations: 0.661 MB / 441 MB, free: 10.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.2321, allocations: 11.89 kB / 441.1 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.907e-05/0.2321, allocations: 44.38 kB / 441.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005218/0.2327, allocations: 407.6 kB / 441.5 MB, free: 9.918 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.2327, allocations: 24.5 kB / 441.5 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.49e-05/0.2327, allocations: 27.98 kB / 441.5 MB, free: 9.867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003544/0.2331, allocations: 334.2 kB / 441.9 MB, free: 9.504 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.2331, allocations: 0 / 441.9 MB, free: 9.504 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/0.2331, allocations: 12 kB / 441.9 MB, free: 9.492 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.2332, allocations: 8 kB / 441.9 MB, free: 9.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002566/0.2334, allocations: 205.4 kB / 442.1 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.2345, allocations: 1.486 MB / 443.6 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003089/0.2348, allocations: 194.3 kB / 443.8 MB, free: 7.473 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.827e-05/0.2349, allocations: 83.47 kB / 443.9 MB, free: 7.379 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.2349, allocations: 7.938 kB / 443.9 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.771e-05/0.235, allocations: 34.56 kB / 443.9 MB, free: 7.328 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.392e-06/0.235, allocations: 0 / 443.9 MB, free: 7.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008545/0.2358, allocations: 0.6861 MB / 444.6 MB, free: 6.586 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.283e-05/0.2359, allocations: 132.5 kB / 444.7 MB, free: 6.426 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.2361, allocations: 313.7 kB / 445 MB, free: 6.113 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.2361, allocations: 33.69 kB / 445 MB, free: 6.074 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.624e-05/0.2362, allocations: 211.8 kB / 445.3 MB, free: 5.859 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.471e-05/0.2362, allocations: 67.08 kB / 445.3 MB, free: 5.793 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.685e-05/0.2363, allocations: 57.7 kB / 445.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.903e-05/0.2364, allocations: 346.8 kB / 445.7 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.505e-05/0.2364, allocations: 43.98 kB / 445.8 MB, free: 5.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.2366, allocations: 152.8 kB / 445.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/0.2367, allocations: 224.8 kB / 446.1 MB, free: 4.879 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2368, allocations: 4 kB / 446.1 MB, free: 4.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002798/0.237, allocations: 252.8 kB / 446.4 MB, free: 4.621 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.2371, allocations: 8 kB / 446.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.2371, allocations: 4 kB / 446.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.2371, allocations: 12.36 kB / 446.4 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003215/0.2374, allocations: 79.91 kB / 446.5 MB, free: 4.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005085/0.2379, allocations: 1.381 MB / 447.9 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.2381, allocations: 8 kB / 447.9 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.2381, allocations: 16 kB / 447.9 MB, free: 2.977 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001067/0.2382, allocations: 173.6 kB / 448.1 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.378e-05/0.2383, allocations: 35.72 kB / 448.1 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002456/0.2386, allocations: 180.5 kB / 448.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.2386, allocations: 0 / 448.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.2386, allocations: 4 kB / 448.3 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2386, allocations: 3.984 kB / 448.3 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005698/0.2392, allocations: 0.5373 MB / 448.8 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2392, allocations: 0 / 448.8 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002111/0.2394, allocations: 39.95 kB / 448.9 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.2394, allocations: 11.98 kB / 448.9 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.778e-05/0.2394, allocations: 4 kB / 448.9 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.2394, allocations: 7.938 kB / 448.9 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2395, allocations: 3.938 kB / 448.9 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003397/0.2398, allocations: 0.4944 MB / 449.4 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.925e-05/0.2399, allocations: 104.7 kB / 449.5 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.2399, allocations: 4 kB / 449.5 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/0.2401, allocations: 8 kB / 449.5 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.104e-05/0.2401, allocations: 15.97 kB / 449.5 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.2402, allocations: 7.984 kB / 449.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001408/0.2403, allocations: 219.2 kB / 449.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2403, allocations: 0 / 449.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003851/0.2407, allocations: 60 kB / 449.8 MB, free: 0.9648 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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.111e-05/0.2408, allocations: 103.2 kB / 449.9 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002902/0.2411, allocations: 159.7 kB / 450 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2411, allocations: 0 / 450 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.617e-05/0.2412, allocations: 68.78 kB / 450.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006414/0.2418, allocations: 98.55 kB / 450.2 MB, free: 0.543 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001161/0.243, allocations: 0.8192 MB / 451 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/0.2434, allocations: 0.8067 MB / 451.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001565/0.2435, allocations: 50.94 kB / 451.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.893e-05/0.2436, allocations: 31.44 kB / 451.9 MB, free: 14.78 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2436, allocations: 0 / 451.9 MB, free: 14.78 MB / 334.1 MB Notification: Performance of Templates: time 0.006344/0.25, allocations: 3.202 MB / 455.1 MB, free: 11.59 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)