Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001283, allocations: 114 kB / 17.06 MB, free: 6.016 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.001346/0.001345, allocations: 189.4 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1799/0.1799, allocations: 38.04 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 63.89 kB / 457.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3307, allocations: 58.06 MB / 0.5036 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.00699/0.3377, allocations: 6.492 MB / 0.51 GB, free: 3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003735/0.3415, allocations: 2.44 MB / 0.5123 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005519/0.3421, allocations: 29.5 kB / 0.5124 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001444/0.3435, allocations: 432.4 kB / 0.5128 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001845/0.3454, allocations: 0.5944 MB / 0.5134 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001633/0.347, allocations: 493.3 kB / 0.5138 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00284/0.3499, allocations: 1.963 MB / 0.5157 GB, free: 15.67 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001689/0.3516, allocations: 0.8553 MB / 0.5166 GB, free: 15.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002148/0.3538, allocations: 0.7716 MB / 0.5173 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002253/0.356, allocations: 0.9597 MB / 0.5183 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003362/0.3564, allocations: 164.1 kB / 0.5184 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001533/0.3579, allocations: 0.6469 MB / 0.5191 GB, free: 14.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008902/0.3588, allocations: 0.6427 MB / 0.5197 GB, free: 14.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001029/0.3599, allocations: 0.6756 MB / 0.5203 GB, free: 13.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002816/0.3627, allocations: 2.043 MB / 0.5223 GB, free: 13.14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3627, allocations: 3.938 kB / 0.5223 GB, free: 13.14 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3627, allocations: 5.375 kB / 0.5223 GB, free: 13.14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.34e-05/0.3628, allocations: 0 / 0.5223 GB, free: 13.14 MB / 398.1 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.00529/0.3681, allocations: 1.928 MB / 0.5242 GB, free: 12.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3681, allocations: 14.12 kB / 0.5242 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002527/0.3684, allocations: 162.8 kB / 0.5244 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007586/0.3691, allocations: 170.3 kB / 0.5246 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002276/0.3714, allocations: 0.9742 MB / 0.5255 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006953/0.3721, allocations: 0.5033 MB / 0.526 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002848/0.3724, allocations: 102.5 kB / 0.5261 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004206/0.3766, allocations: 2.014 MB / 0.5281 GB, free: 9.758 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.069e-05/0.3767, allocations: 5.062 kB / 0.5281 GB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001445/0.3768, allocations: 32.94 kB / 0.5281 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002262/0.3771, allocations: 95.92 kB / 0.5282 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005089/0.3822, allocations: 2.241 MB / 0.5304 GB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009871/0.3921, allocations: 5.674 MB / 0.5359 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004816/0.3969, allocations: 1.793 MB / 0.5377 GB, free: 3.727 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002652/0.3996, allocations: 1.148 MB / 0.5388 GB, free: 3.137 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001025/0.3997, allocations: 24.31 kB / 0.5388 GB, free: 3.125 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003003/0.4027, allocations: 1.387 MB / 0.5402 GB, free: 2.332 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 3.206e-06/0.4027, allocations: 0 / 0.5402 GB, free: 2.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.01463/0.4174, allocations: 5.65 MB / 0.5457 GB, free: 13.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.047e-05/0.4175, allocations: 110 kB / 0.5458 GB, free: 13.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006513/0.4181, allocations: 498 kB / 0.5463 GB, free: 12.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001392/0.4183, allocations: 57.69 kB / 0.5463 GB, free: 12.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003298/0.4186, allocations: 373.5 kB / 0.5467 GB, free: 12.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004296/0.419, allocations: 436.3 kB / 0.5471 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004783/0.4195, allocations: 226.9 kB / 0.5473 GB, free: 11.45 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.4198, allocations: 394.8 kB / 0.5477 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002244/0.422, allocations: 1.025 MB / 0.5487 GB, free: 10.03 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002328/0.4243, allocations: 1.172 MB / 0.5498 GB, free: 8.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004256/0.4286, allocations: 2.039 MB / 0.5518 GB, free: 6.734 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.4286, allocations: 4 kB / 0.5518 GB, free: 6.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01131/0.44, allocations: 3.907 MB / 0.5557 GB, free: 2.805 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001487/0.4401, allocations: 57.69 kB / 0.5557 GB, free: 2.742 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.4402, allocations: 4 kB / 0.5557 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00613/0.4463, allocations: 2.067 MB / 0.5577 GB, free: 0.668 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009889/0.4473, allocations: 195.7 kB / 0.5579 GB, free: 488 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02735/0.4747, allocations: 11.31 MB / 0.569 GB, free: 5.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001535/0.4762, allocations: 163.8 kB / 0.5691 GB, free: 4.859 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002055/0.4765, allocations: 76 kB / 0.5692 GB, free: 4.785 MB / 430.1 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 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1,$whenCondition2,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0007329/0.4772, allocations: 381.4 kB / 0.5696 GB, free: 4.402 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002977/0.4775, allocations: 87.47 kB / 0.5696 GB, free: 4.316 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005947/0.4835, allocations: 2.357 MB / 0.5719 GB, free: 1.949 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.31e-05/0.4835, allocations: 28 kB / 0.572 GB, free: 1.922 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.4835, allocations: 0 / 0.572 GB, free: 1.922 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.4836, allocations: 7.969 kB / 0.572 GB, free: 1.914 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008737/0.4923, allocations: 4.101 MB / 0.576 GB, free: 13.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.4923, allocations: 4.25 kB / 0.576 GB, free: 13.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01148/0.5038, allocations: 2.021 MB / 0.578 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.825e-05/0.5039, allocations: 11.94 kB / 0.578 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001971/0.5041, allocations: 39.95 kB / 0.578 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.877e-06/0.5041, allocations: 4 kB / 0.578 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.5041, allocations: 4 kB / 0.578 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008822/0.5129, allocations: 3.867 MB / 0.5818 GB, free: 7.727 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006926/0.5136, allocations: 336.4 kB / 0.5821 GB, free: 7.379 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002647/0.5139, allocations: 91.88 kB / 0.5822 GB, free: 7.289 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/0.5153, allocations: 187.7 kB / 0.5824 GB, free: 7.105 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000451/0.5158, allocations: 192.7 kB / 0.5826 GB, free: 6.918 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001209/0.5159, allocations: 39.97 kB / 0.5826 GB, free: 6.879 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004439/0.5163, allocations: 350.8 kB / 0.5829 GB, free: 6.535 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5164, allocations: 4 kB / 0.5829 GB, free: 6.531 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001197/0.5176, allocations: 351.9 kB / 0.5833 GB, free: 6.188 MB / 446.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009439/0.527, allocations: 4.54 MB / 0.5877 GB, free: 1.586 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007332/0.5344, allocations: 3.006 MB / 0.5906 GB, free: 14.55 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.5344, allocations: 0 / 0.5906 GB, free: 14.55 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006443/0.5409, allocations: 1.93 MB / 0.5925 GB, free: 12.63 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.542, allocations: 184.3 kB / 0.5927 GB, free: 12.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0366/0.5787, allocations: 15.66 MB / 0.608 GB, free: 12.51 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009257/0.5796, allocations: 1.14 MB / 0.6091 GB, free: 11.34 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001097/0.5807, allocations: 322.7 kB / 0.6094 GB, free: 11.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007193/0.5815, allocations: 343.3 kB / 0.6097 GB, free: 10.69 MB / 478.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5815, allocations: 0 / 0.6097 GB, free: 10.69 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07155/0.653, allocations: 32.7 MB / 0.6417 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.78, allocations: 16.5 kB / 0.6417 GB, free: 10.18 MB / 0.4981 GB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)