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.000879/0.000879, allocations: 172.9 kB / 16.07 MB, free: 5.723 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.215/1.216, allocations: 205.4 MB / 222.2 MB, free: 9.012 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.0007287/0.0007286, allocations: 94.28 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1661/0.1661, allocations: 38.07 MB / 356.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.0003307, allocations: 15.98 kB / 423.3 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2133/0.2136, allocations: 56.32 MB / 479.6 MB, free: 9.238 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.005699/0.2194, allocations: 6.744 MB / 486.4 MB, free: 4.715 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003676/0.2231, allocations: 2.653 MB / 489 MB, free: 2.859 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004821/0.2236, allocations: 41 kB / 489.1 MB, free: 2.844 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004678/0.2241, allocations: 174.6 kB / 489.2 MB, free: 2.754 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001293/0.2254, allocations: 0.6054 MB / 489.8 MB, free: 2.457 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001043/0.2264, allocations: 448.9 kB / 490.3 MB, free: 2.27 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001992/0.2284, allocations: 2.013 MB / 492.3 MB, free: 1.539 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/0.2297, allocations: 0.9473 MB / 493.2 MB, free: 1.02 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009895/0.2307, allocations: 0.6401 MB / 493.9 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001329/0.2321, allocations: 0.9132 MB / 494.8 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002201/0.2323, allocations: 75.25 kB / 494.9 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001147/0.2335, allocations: 0.607 MB / 495.5 MB, free: 432 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006586/0.2341, allocations: 0.5524 MB / 496 MB, free: 280 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007344/0.2349, allocations: 0.5784 MB / 496.6 MB, free: 15.95 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001519/0.2364, allocations: 1.533 MB / 498.1 MB, free: 15.08 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.2364, allocations: 0 / 498.1 MB, free: 15.08 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2364, allocations: 0 / 498.1 MB, free: 15.08 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.788e-05/0.2365, allocations: 0.9688 kB / 498.1 MB, free: 15.08 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.004005/0.2405, allocations: 1.711 MB / 499.9 MB, free: 13.9 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.2405, allocations: 8.656 kB / 499.9 MB, free: 13.9 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007035/0.2412, allocations: 166 kB / 0.4883 GB, free: 13.83 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002058/0.2433, allocations: 0.9313 MB / 0.4892 GB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006109/0.2439, allocations: 0.5291 MB / 0.4897 GB, free: 12.71 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002584/0.2442, allocations: 103.6 kB / 0.4898 GB, free: 12.67 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004047/0.2483, allocations: 2.108 MB / 0.4919 GB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.758e-05/0.2483, allocations: 4.984 kB / 0.4919 GB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001396/0.2485, allocations: 32.66 kB / 0.4919 GB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002008/0.2487, allocations: 87.97 kB / 0.492 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004853/0.2535, allocations: 2.419 MB / 0.4944 GB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009416/0.263, allocations: 5.768 MB / 0.5 GB, free: 5.648 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00453/0.2675, allocations: 1.933 MB / 0.5019 GB, free: 3.676 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002551/0.2701, allocations: 1.25 MB / 0.5031 GB, free: 2.418 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001027/0.2702, allocations: 16.97 kB / 0.5031 GB, free: 2.398 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00287/0.2731, allocations: 1.493 MB / 0.5046 GB, free: 0.8906 MB / 330.7 MB Notification: Performance of pre-optimization done (n=123): time 3.768e-06/0.2731, allocations: 0 / 0.5046 GB, free: 0.8906 MB / 330.7 MB Notification: Performance of matching and sorting (n=124): time 0.0134/0.2865, allocations: 6.106 MB / 0.5105 GB, free: 10.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.249e-05/0.2866, allocations: 106 kB / 0.5107 GB, free: 10.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005921/0.2872, allocations: 489.9 kB / 0.5111 GB, free: 10.12 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001427/0.2874, allocations: 57.7 kB / 0.5112 GB, free: 10.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002734/0.2876, allocations: 368.7 kB / 0.5115 GB, free: 9.688 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000362/0.288, allocations: 414 kB / 0.5119 GB, free: 9.277 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.836e-05/0.2881, allocations: 24 kB / 0.5119 GB, free: 9.254 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.2883, allocations: 394.8 kB / 0.5123 GB, free: 8.859 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001988/0.2903, allocations: 1.096 MB / 0.5134 GB, free: 7.766 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002101/0.2924, allocations: 1.254 MB / 0.5146 GB, free: 6.477 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003916/0.2963, allocations: 2.18 MB / 0.5167 GB, free: 4.254 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.2964, allocations: 0 / 0.5167 GB, free: 4.254 MB / 346.7 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01079/0.3072, allocations: 4.403 MB / 0.521 GB, free: 15.83 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.489e-05/0.3073, allocations: 61.67 kB / 0.5211 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.3073, allocations: 4 kB / 0.5211 GB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005774/0.3131, allocations: 2.218 MB / 0.5233 GB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000887/0.314, allocations: 191.7 kB / 0.5235 GB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02401/0.338, allocations: 11.64 MB / 0.5348 GB, free: 1.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.3394, allocations: 199.8 kB / 0.535 GB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002514/0.3397, allocations: 83.81 kB / 0.5351 GB, free: 1.293 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 (106): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 1 * 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.0007583/0.3405, allocations: 377.4 kB / 0.5355 GB, free: 0.9141 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002461/0.3407, allocations: 86.98 kB / 0.5355 GB, free: 0.8281 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005501/0.3462, allocations: 2.553 MB / 0.538 GB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.81e-05/0.3463, allocations: 27.98 kB / 0.5381 GB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3463, allocations: 4 kB / 0.5381 GB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.3463, allocations: 3.984 kB / 0.5381 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008092/0.3544, allocations: 4.305 MB / 0.5423 GB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.3544, allocations: 128 / 0.5423 GB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01077/0.3652, allocations: 2.853 MB / 0.5451 GB, free: 6.984 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.081e-05/0.3653, allocations: 8 kB / 0.5451 GB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002573/0.3655, allocations: 39.91 kB / 0.5451 GB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.079e-05/0.3656, allocations: 8 kB / 0.5451 GB, free: 6.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.3656, allocations: 7.922 kB / 0.5451 GB, free: 6.922 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008325/0.3739, allocations: 4.146 MB / 0.5492 GB, free: 2.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006876/0.3746, allocations: 332 kB / 0.5495 GB, free: 2.387 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003099/0.3749, allocations: 91.92 kB / 0.5496 GB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001389/0.3763, allocations: 235.7 kB / 0.5498 GB, free: 2.066 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004041/0.3768, allocations: 200.6 kB / 0.55 GB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/0.3769, allocations: 39.97 kB / 0.55 GB, free: 1.832 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004182/0.3773, allocations: 342.8 kB / 0.5503 GB, free: 1.496 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3773, allocations: 0 / 0.5503 GB, free: 1.496 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001214/0.3785, allocations: 355.9 kB / 0.5507 GB, free: 1.148 MB / 378.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.000432/0.379, allocations: 219.1 kB / 0.5509 GB, free: 0.9258 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006451/0.3854, allocations: 3.147 MB / 0.554 GB, free: 13.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3855, allocations: 256 / 0.554 GB, free: 13.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005971/0.3915, allocations: 2.235 MB / 0.5562 GB, free: 11.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/0.3928, allocations: 174.4 kB / 0.5563 GB, free: 11.35 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007215/0.4, allocations: 3.935 MB / 0.5602 GB, free: 7.355 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000757/0.4008, allocations: 1.14 MB / 0.5613 GB, free: 6.191 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000576/0.4014, allocations: 79.42 kB / 0.5613 GB, free: 6.113 MB / 394.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4014, allocations: 0 / 0.5613 GB, free: 6.113 MB / 394.7 MB Notification: Performance of Templates: time 0.02498/0.4264, allocations: 18.93 MB / 0.5798 GB, free: 3.145 MB / 410.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)