Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines") translateModel(PowerSystems.Examples.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001613/0.001616, allocations: 185.8 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.999/1.999, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001098/0.001098, allocations: 98.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2618/0.2618, allocations: 38.05 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006198/0.0006199, allocations: 12 kB / 422.7 MB, free: 26.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1078, allocations: 56.34 MB / 479 MB, free: 2.047 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.008761/0.1166, allocations: 5.289 MB / 484.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.009257/0.1259, allocations: 4.106 MB / 488.4 MB, free: 8.613 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006827/0.1267, allocations: 35.75 kB / 488.5 MB, free: 8.578 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006537/0.1332, allocations: 1.657 MB / 490.1 MB, free: 6.914 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001249/0.1345, allocations: 283 kB / 490.4 MB, free: 6.637 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000989/0.1355, allocations: 219.6 kB / 490.6 MB, free: 6.422 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001006/0.1366, allocations: 491.4 kB / 491.1 MB, free: 5.941 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001103/0.1377, allocations: 0.4906 MB / 491.6 MB, free: 5.418 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005385/0.1382, allocations: 263 kB / 491.8 MB, free: 5.16 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006151/0.1389, allocations: 286.9 kB / 492.1 MB, free: 4.879 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.055e-05/0.139, allocations: 24 kB / 492.1 MB, free: 4.855 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003018/0.1393, allocations: 63.91 kB / 492.2 MB, free: 4.793 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003429/0.1397, allocations: 231.4 kB / 492.4 MB, free: 4.566 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002089/0.1399, allocations: 137.4 kB / 492.6 MB, free: 4.426 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009143/0.1408, allocations: 0.5571 MB / 493.1 MB, free: 3.867 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.1408, allocations: 0 / 493.1 MB, free: 3.867 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1408, allocations: 4 kB / 493.1 MB, free: 3.863 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.1409, allocations: 0 / 493.1 MB, free: 3.863 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.002257/0.1431, allocations: 0.7965 MB / 493.9 MB, free: 3.016 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.1432, allocations: 12.03 kB / 493.9 MB, free: 3.004 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007012/0.1439, allocations: 99.06 kB / 494 MB, free: 2.906 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/0.1455, allocations: 0.5249 MB / 494.6 MB, free: 2.34 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.274e-05/0.1456, allocations: 37 kB / 494.6 MB, free: 2.301 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.1457, allocations: 51.89 kB / 494.6 MB, free: 2.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.1473, allocations: 0.6336 MB / 495.3 MB, free: 1.578 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.251e-05/0.1473, allocations: 4 kB / 495.3 MB, free: 1.574 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.371e-05/0.1474, allocations: 19.98 kB / 495.3 MB, free: 1.555 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002321/0.1476, allocations: 56.95 kB / 495.4 MB, free: 1.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.149, allocations: 483.5 kB / 495.8 MB, free: 1.027 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005484/0.1545, allocations: 2.543 MB / 498.4 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000832/0.1553, allocations: 319.6 kB / 498.7 MB, free: 14.01 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.919e-05/0.1554, allocations: 8.547 kB / 498.7 MB, free: 14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.661e-05/0.1555, allocations: 34.56 kB / 498.7 MB, free: 13.96 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 3.277e-06/0.1555, allocations: 4 kB / 498.7 MB, free: 13.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.003955/0.1594, allocations: 1.63 MB / 0.4886 GB, free: 12.19 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.734e-05/0.1596, allocations: 114.8 kB / 0.4887 GB, free: 12.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000713/0.1603, allocations: 421.8 kB / 0.4891 GB, free: 11.63 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.069e-05/0.1604, allocations: 37.86 kB / 0.4892 GB, free: 11.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000285/0.1607, allocations: 338.1 kB / 0.4895 GB, free: 11.26 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.1608, allocations: 126.2 kB / 0.4896 GB, free: 11.13 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.504e-05/0.1609, allocations: 12 kB / 0.4896 GB, free: 11.12 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.161, allocations: 322.8 kB / 0.4899 GB, free: 10.8 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004494/0.1615, allocations: 169 kB / 0.4901 GB, free: 10.63 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005586/0.1621, allocations: 297.8 kB / 0.4904 GB, free: 10.28 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000563/0.1626, allocations: 207.6 kB / 0.4906 GB, free: 10.08 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.1627, allocations: 8 kB / 0.4906 GB, free: 10.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.002235/0.1649, allocations: 0.7648 MB / 0.4913 GB, free: 9.273 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.165, allocations: 8 kB / 0.4913 GB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.165, allocations: 4 kB / 0.4914 GB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.1661, allocations: 213.7 kB / 0.4916 GB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005649/0.1667, allocations: 75.83 kB / 0.4916 GB, free: 8.973 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007035/0.1737, allocations: 3.966 MB / 0.4955 GB, free: 4.746 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005133/0.1743, allocations: 19.91 kB / 0.4955 GB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.749e-05/0.1744, allocations: 23.98 kB / 0.4955 GB, free: 4.703 MB / 346.7 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): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.000467/0.1748, allocations: 237.6 kB / 0.4958 GB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.175, allocations: 47.39 kB / 0.4958 GB, free: 4.414 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/0.1765, allocations: 0.6254 MB / 0.4964 GB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/0.1765, allocations: 8 kB / 0.4964 GB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.1765, allocations: 11.97 kB / 0.4964 GB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.1765, allocations: 3.984 kB / 0.4964 GB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002727/0.1793, allocations: 1.183 MB / 0.4976 GB, free: 2.426 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.1793, allocations: 4 kB / 0.4976 GB, free: 2.422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008527/0.1802, allocations: 79.83 kB / 0.4977 GB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002684/0.1805, allocations: 53.67 kB / 0.4977 GB, free: 2.285 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.966e-05/0.1805, allocations: 8 kB / 0.4977 GB, free: 2.277 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002826/0.1834, allocations: 2.642 MB / 0.5003 GB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/0.1834, allocations: 4.031 kB / 0.5003 GB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001978/0.1854, allocations: 1.01 MB / 0.5013 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003045/0.1858, allocations: 144.5 kB / 0.5014 GB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.692e-05/0.1859, allocations: 11.98 kB / 0.5015 GB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004234/0.1863, allocations: 8 kB / 0.5015 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.1864, allocations: 35.89 kB / 0.5015 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.452e-05/0.1865, allocations: 16 kB / 0.5015 GB, free: 14.03 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005339/0.187, allocations: 291.1 kB / 0.5018 GB, free: 13.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.187, allocations: 0 / 0.5018 GB, free: 13.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008788/0.1879, allocations: 132 kB / 0.5019 GB, free: 13.62 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001946/0.1881, allocations: 107.2 kB / 0.502 GB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002013/0.1902, allocations: 0.7197 MB / 0.5027 GB, free: 12.76 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.1902, allocations: 4 kB / 0.5027 GB, free: 12.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009302/0.1911, allocations: 414.4 kB / 0.5031 GB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009521/0.1921, allocations: 108.8 kB / 0.5032 GB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003829/0.196, allocations: 1.878 MB / 0.5051 GB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000775/0.1968, allocations: 0.9561 MB / 0.506 GB, free: 9.312 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002375/0.197, allocations: 39.44 kB / 0.506 GB, free: 9.273 MB / 362.7 MB Notification: Performance of SimCode: time 1.242e-06/0.197, allocations: 3.938 kB / 0.506 GB, free: 9.27 MB / 362.7 MB Notification: Performance of Templates: time 0.3136/0.5106, allocations: 10.78 MB / 0.5166 GB, free: 51.44 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1)