Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.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.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 174.4 kB / 15.77 MB, free: 6.324 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.592/1.592, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0008756/0.0008754, allocations: 102.3 kB / 270.3 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.1723/0.1723, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003924/0.0003925, allocations: 16 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1283, allocations: 56.33 MB / 479.1 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.007732/0.136, allocations: 6.698 MB / 485.8 MB, free: 11.31 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00455/0.1406, allocations: 2.651 MB / 488.4 MB, free: 8.648 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004437/0.1411, allocations: 39.75 kB / 488.5 MB, free: 8.609 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004881/0.1416, allocations: 174.7 kB / 488.6 MB, free: 8.438 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001231/0.1428, allocations: 0.6029 MB / 489.2 MB, free: 7.832 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009211/0.1438, allocations: 435.3 kB / 489.7 MB, free: 7.406 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00175/0.1455, allocations: 2.019 MB / 491.7 MB, free: 5.383 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001095/0.1466, allocations: 0.8356 MB / 492.5 MB, free: 4.516 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008167/0.1475, allocations: 0.6307 MB / 493.1 MB, free: 3.883 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0012/0.1487, allocations: 0.9196 MB / 494.1 MB, free: 2.961 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001674/0.1489, allocations: 72 kB / 494.1 MB, free: 2.891 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009773/0.1498, allocations: 0.55 MB / 494.7 MB, free: 2.34 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000544/0.1504, allocations: 0.5534 MB / 495.2 MB, free: 1.785 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002495/0.1507, allocations: 221.2 kB / 495.4 MB, free: 1.562 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001386/0.1521, allocations: 1.539 MB / 497 MB, free: 20 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1521, allocations: 4 kB / 497 MB, free: 16 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1521, allocations: 0 / 497 MB, free: 16 kB / 330.7 MB Notification: Performance of Transformations before backend: time 2.017e-05/0.1521, allocations: 0 / 497 MB, free: 16 kB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.004257/0.1564, allocations: 1.721 MB / 498.7 MB, free: 14.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.1564, allocations: 8.031 kB / 498.7 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007052/0.1571, allocations: 162.6 kB / 498.9 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002016/0.1592, allocations: 0.9234 MB / 499.8 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006068/0.1598, allocations: 0.5256 MB / 0.4886 GB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002337/0.16, allocations: 99.89 kB / 0.4887 GB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003863/0.1639, allocations: 2.105 MB / 0.4908 GB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.693e-05/0.1639, allocations: 3.953 kB / 0.4908 GB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001358/0.1641, allocations: 35.98 kB / 0.4908 GB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002014/0.1643, allocations: 97.92 kB / 0.4909 GB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004782/0.1691, allocations: 2.416 MB / 0.4932 GB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00945/0.1785, allocations: 5.753 MB / 0.4989 GB, free: 1.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004763/0.1833, allocations: 1.945 MB / 0.5008 GB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002614/0.186, allocations: 1.246 MB / 0.502 GB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.612e-05/0.1861, allocations: 16.97 kB / 0.502 GB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003011/0.1891, allocations: 1.485 MB / 0.5034 GB, free: 13.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=123): time 2.915e-06/0.1891, allocations: 0 / 0.5034 GB, free: 13.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=124): time 0.01406/0.2032, allocations: 6.102 MB / 0.5094 GB, free: 6.914 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.902e-05/0.2033, allocations: 114 kB / 0.5095 GB, free: 6.785 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006508/0.2039, allocations: 493.9 kB / 0.51 GB, free: 6.289 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001315/0.2041, allocations: 61.62 kB / 0.51 GB, free: 6.223 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002932/0.2044, allocations: 356.8 kB / 0.5104 GB, free: 5.867 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003959/0.2048, allocations: 418 kB / 0.5108 GB, free: 5.453 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.2049, allocations: 24 kB / 0.5108 GB, free: 5.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002007/0.2051, allocations: 394.7 kB / 0.5112 GB, free: 5.035 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002125/0.2072, allocations: 1.08 MB / 0.5122 GB, free: 3.957 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002136/0.2094, allocations: 1.231 MB / 0.5134 GB, free: 2.688 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002133/0.2115, allocations: 1.116 MB / 0.5145 GB, free: 1.566 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.2116, allocations: 0 / 0.5145 GB, free: 1.566 MB / 362.7 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.2486/0.4601, allocations: 4.374 MB / 0.5188 GB, free: 52.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001186/0.4603, allocations: 60.58 kB / 0.5189 GB, free: 52.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.902e-05/0.4603, allocations: 3.188 kB / 0.5189 GB, free: 52.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006348/0.4667, allocations: 2.226 MB / 0.521 GB, free: 52.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000997/0.4677, allocations: 193.8 kB / 0.5212 GB, free: 52.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02467/0.4924, allocations: 11.63 MB / 0.5326 GB, free: 47.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/0.4938, allocations: 210.1 kB / 0.5328 GB, free: 47.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/0.4939, allocations: 70.41 kB / 0.5328 GB, free: 47.58 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 21} Notification: Performance of prepare postOptimizeDAE: time 0.000632/0.4946, allocations: 385.3 kB / 0.5332 GB, free: 47.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002025/0.4948, allocations: 79.52 kB / 0.5333 GB, free: 47.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004911/0.4997, allocations: 2.558 MB / 0.5358 GB, free: 45.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-05/0.4997, allocations: 25.23 kB / 0.5358 GB, free: 45.63 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.4998, allocations: 4 kB / 0.5358 GB, free: 45.63 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.4998, allocations: 3.984 kB / 0.5358 GB, free: 45.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00704/0.5068, allocations: 4.297 MB / 0.54 GB, free: 41.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.5068, allocations: 8.031 kB / 0.54 GB, free: 41.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01035/0.5172, allocations: 2.849 MB / 0.5428 GB, free: 38.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-05/0.5172, allocations: 15.83 kB / 0.5428 GB, free: 38.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001582/0.5174, allocations: 35.97 kB / 0.5429 GB, free: 38.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.516e-06/0.5174, allocations: 11.92 kB / 0.5429 GB, free: 38.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.5174, allocations: 8 kB / 0.5429 GB, free: 38.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007386/0.5248, allocations: 4.144 MB / 0.5469 GB, free: 34.24 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005438/0.5254, allocations: 342.5 kB / 0.5472 GB, free: 33.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000204/0.5256, allocations: 87.94 kB / 0.5473 GB, free: 33.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/0.5269, allocations: 239.7 kB / 0.5476 GB, free: 33.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003539/0.5272, allocations: 189.8 kB / 0.5477 GB, free: 33.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.825e-05/0.5273, allocations: 39.97 kB / 0.5478 GB, free: 33.36 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003557/0.5277, allocations: 342.8 kB / 0.5481 GB, free: 33.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.92e-07/0.5277, allocations: 96 / 0.5481 GB, free: 33.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001085/0.5288, allocations: 366.5 kB / 0.5485 GB, free: 32.67 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003328/0.5291, allocations: 197.4 kB / 0.5486 GB, free: 32.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006099/0.5352, allocations: 3.824 MB / 0.5524 GB, free: 28.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.5353, allocations: 5.312 kB / 0.5524 GB, free: 28.55 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005575/0.5408, allocations: 2.236 MB / 0.5546 GB, free: 26.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.542, allocations: 170.7 kB / 0.5547 GB, free: 26.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006578/0.5485, allocations: 3.932 MB / 0.5586 GB, free: 22.17 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00057/0.5491, allocations: 1.148 MB / 0.5597 GB, free: 20.99 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004558/0.5496, allocations: 83.41 kB / 0.5598 GB, free: 20.91 MB / 362.7 MB Notification: Performance of SimCode: time 1.893e-06/0.5496, allocations: 0 / 0.5598 GB, free: 20.91 MB / 362.7 MB Notification: Performance of Templates: time 0.02339/0.573, allocations: 20.78 MB / 0.5801 GB, free: 100 kB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)