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 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: "" <> 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.001205/0.001205, allocations: 94.7 kB / 16.3 MB, free: 5.996 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.001296/0.001296, allocations: 181.8 kB / 17.2 MB, free: 5.914 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.549/1.549, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1838/0.1838, allocations: 38.04 MB / 309.7 MB, free: 6.137 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.0005006/0.0005007, allocations: 12 kB / 376.6 MB, free: 3.098 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2727, allocations: 56.32 MB / 432.9 MB, free: 18.83 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.00574/0.2785, allocations: 6.427 MB / 439.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00414/0.2827, allocations: 2.663 MB / 442 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00059/0.2833, allocations: 43.69 kB / 442 MB, free: 9.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004672/0.2838, allocations: 163 kB / 442.2 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001179/0.285, allocations: 494.5 kB / 442.7 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.286, allocations: 427.1 kB / 443.1 MB, free: 8.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001062/0.2871, allocations: 1.03 MB / 444.1 MB, free: 7.566 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009998/0.2881, allocations: 0.8358 MB / 445 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006323/0.2888, allocations: 0.5648 MB / 445.5 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007963/0.2896, allocations: 0.7326 MB / 446.3 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001247/0.2897, allocations: 68 kB / 446.3 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000742/0.2905, allocations: 0.5071 MB / 446.8 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004575/0.2909, allocations: 0.5222 MB / 447.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002109/0.2911, allocations: 221.2 kB / 447.6 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.2922, allocations: 1.532 MB / 449.1 MB, free: 2.539 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.2922, allocations: 3.938 kB / 449.1 MB, free: 2.535 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2922, allocations: 4 kB / 449.1 MB, free: 2.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.522e-05/0.2922, allocations: 0 / 449.1 MB, free: 2.531 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.003849/0.2961, allocations: 1.729 MB / 450.8 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.2961, allocations: 12.03 kB / 450.9 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002274/0.2964, allocations: 160.2 kB / 451 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006674/0.297, allocations: 178.6 kB / 451.2 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002291/0.2993, allocations: 0.9196 MB / 452.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006332/0.3, allocations: 0.5179 MB / 452.6 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000233/0.3002, allocations: 99.89 kB / 452.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003934/0.3042, allocations: 2.112 MB / 454.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.764e-05/0.3042, allocations: 3.906 kB / 454.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001303/0.3044, allocations: 35.98 kB / 454.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002168/0.3046, allocations: 93.94 kB / 455 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00493/0.3095, allocations: 2.401 MB / 457.4 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0101/0.3196, allocations: 5.765 MB / 463.1 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004752/0.3244, allocations: 1.958 MB / 465.1 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.695e-05/0.3246, allocations: 16.98 kB / 465.1 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002952/0.3275, allocations: 1.481 MB / 466.6 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of pre-optimization done (n=123): time 3.146e-06/0.3275, allocations: 7.938 kB / 466.6 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of matching and sorting (n=124): time 0.01444/0.342, allocations: 6.546 MB / 473.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.003e-05/0.3421, allocations: 106.1 kB / 473.2 MB, free: 9.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006048/0.3427, allocations: 493.9 kB / 473.7 MB, free: 9.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00012/0.3428, allocations: 57.7 kB / 473.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003091/0.3432, allocations: 368.6 kB / 474.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003745/0.3435, allocations: 414.1 kB / 474.5 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.286e-05/0.3436, allocations: 20 kB / 474.6 MB, free: 8.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002038/0.3438, allocations: 394.8 kB / 475 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002107/0.346, allocations: 1.088 MB / 476 MB, free: 6.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002238/0.3482, allocations: 1.223 MB / 477.3 MB, free: 5.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002127/0.3504, allocations: 1.12 MB / 478.4 MB, free: 4.605 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.3504, allocations: 0 / 478.4 MB, free: 4.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01184/0.3622, allocations: 4.475 MB / 482.9 MB, free: 92 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/0.3624, allocations: 61.92 kB / 482.9 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.3624, allocations: 4 kB / 482.9 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006663/0.3691, allocations: 2.246 MB / 485.2 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009707/0.3701, allocations: 183.7 kB / 485.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0284/0.3985, allocations: 13.72 MB / 499.1 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/0.4001, allocations: 212 kB / 499.3 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/0.4003, allocations: 83.81 kB / 499.4 MB, free: 15.3 MB / 382.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 ($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 (111): * Single equations (assignments): 99 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 21} Notification: Performance of prepare postOptimizeDAE: time 0.0007106/0.401, allocations: 365.5 kB / 499.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002214/0.4012, allocations: 90.91 kB / 499.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005873/0.4071, allocations: 2.668 MB / 0.4907 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.3e-05/0.4072, allocations: 27.94 kB / 0.4907 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.4072, allocations: 4 kB / 0.4907 GB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.055e-05/0.4072, allocations: 7.969 kB / 0.4907 GB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008974/0.4162, allocations: 4.385 MB / 0.495 GB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/0.4163, allocations: 4.188 kB / 0.495 GB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0121/0.4284, allocations: 2.853 MB / 0.4978 GB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001492/0.4286, allocations: 20.86 kB / 0.4978 GB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003269/0.4289, allocations: 39.95 kB / 0.4979 GB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001307/0.4303, allocations: 1.392 MB / 0.4992 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.175e-06/0.4303, allocations: 15.89 kB / 0.4992 GB, free: 3.156 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00947/0.4398, allocations: 4.351 MB / 0.5035 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008575/0.4407, allocations: 340 kB / 0.5038 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002493/0.4409, allocations: 83.94 kB / 0.5039 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/0.4424, allocations: 243.7 kB / 0.5041 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004064/0.4428, allocations: 196.7 kB / 0.5043 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001152/0.4429, allocations: 43.97 kB / 0.5044 GB, free: 13.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004417/0.4434, allocations: 338.8 kB / 0.5047 GB, free: 13.44 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4434, allocations: 0 / 0.5047 GB, free: 13.44 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001404/0.4448, allocations: 367.9 kB / 0.505 GB, free: 13.08 MB / 398.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): 95 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009843/0.4546, allocations: 5.625 MB / 0.5105 GB, free: 7.348 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00801/0.4627, allocations: 3.954 MB / 0.5144 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/0.4627, allocations: 0 / 0.5144 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007013/0.4698, allocations: 2.409 MB / 0.5167 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.4708, allocations: 158.4 kB / 0.5169 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.226/0.6968, allocations: 13.3 MB / 0.5299 GB, free: 84.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007222/0.6976, allocations: 1.166 MB / 0.531 GB, free: 83.56 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001031/0.6986, allocations: 315.6 kB / 0.5313 GB, free: 83.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005786/0.6992, allocations: 339.1 kB / 0.5316 GB, free: 83.27 MB / 398.1 MB Notification: Performance of SimCode: time 2.845e-06/0.6992, allocations: 4 kB / 0.5316 GB, free: 83.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04494/0.7442, allocations: 33.46 MB / 0.5643 GB, free: 52.29 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001535/0.7444, allocations: 219.3 kB / 0.5645 GB, free: 52.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.36/3.104, allocations: 0 / 0.5645 GB, free: 52.04 MB / 398.1 MB (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/linux/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) Environment - environmentSimulation: