Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002271/0.002271, allocations: 183.4 kB / 8.135 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.328/1.328, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0009021/0.0009021, allocations: 89.33 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1641/0.1641, allocations: 37.97 MB / 347.7 MB, free: 7.461 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1976/0.3618, allocations: 62.44 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.4692, allocations: 56.31 MB / 466.4 MB, free: 6.383 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3534/0.8227, allocations: 112.1 MB / 0.5649 GB, free: 14.48 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/0.8229, allocations: 87.95 kB / 0.565 GB, free: 14.39 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:17:7-17:46:writable] Error: Variable inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:20:7-20:46:writable] Error: Variable inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. 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.09079/0.9137, allocations: 29.37 MB / 0.5937 GB, free: 0.668 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.9138, allocations: 8 kB / 0.5937 GB, free: 0.6602 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001312/0.9151, allocations: 162.6 kB / 0.5939 GB, free: 0.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00634/0.9215, allocations: 1.649 MB / 0.5955 GB, free: 14.81 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008373/0.9223, allocations: 0.4905 MB / 0.5959 GB, free: 14.24 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000558/0.9229, allocations: 63.98 kB / 0.596 GB, free: 14.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003353/0.9263, allocations: 1.679 MB / 0.5977 GB, free: 12.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003532/0.9298, allocations: 1.708 MB / 0.5993 GB, free: 10.74 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.403e-05/0.9299, allocations: 4 kB / 0.5993 GB, free: 10.74 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002142/0.9301, allocations: 0 / 0.5993 GB, free: 10.74 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002112/0.9304, allocations: 81.86 kB / 0.5994 GB, free: 10.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01149/0.9419, allocations: 5.699 MB / 0.605 GB, free: 4.859 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002101/0.944, allocations: 1.2 MB / 0.6061 GB, free: 3.648 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001461/0.9455, allocations: 0.9848 MB / 0.6071 GB, free: 2.66 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001044/0.9456, allocations: 13 kB / 0.6071 GB, free: 2.645 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001823/0.9475, allocations: 1.159 MB / 0.6082 GB, free: 1.461 MB / 442.7 MB Notification: Performance of pre-optimization done (n=125): time 4.879e-06/0.9475, allocations: 0 / 0.6082 GB, free: 1.461 MB / 442.7 MB Notification: Performance of matching and sorting (n=126): time 0.008999/0.9565, allocations: 4.193 MB / 0.6123 GB, free: 13.19 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.147e-05/0.9566, allocations: 102.1 kB / 0.6124 GB, free: 13.07 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005837/0.9572, allocations: 361.1 kB / 0.6128 GB, free: 12.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001354/0.9573, allocations: 41.69 kB / 0.6128 GB, free: 12.67 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002989/0.9577, allocations: 312.5 kB / 0.6131 GB, free: 12.36 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004168/0.9581, allocations: 406.1 kB / 0.6135 GB, free: 11.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.742e-05/0.9582, allocations: 4 kB / 0.6135 GB, free: 11.95 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.9584, allocations: 394.7 kB / 0.6139 GB, free: 11.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001403/0.9598, allocations: 0.9396 MB / 0.6148 GB, free: 10.61 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001432/0.9612, allocations: 1.066 MB / 0.6158 GB, free: 9.508 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001848/0.9631, allocations: 1.04 MB / 0.6169 GB, free: 8.469 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.9631, allocations: 8 kB / 0.6169 GB, free: 8.461 MB / 458.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.01106/0.9742, allocations: 4.062 MB / 0.6208 GB, free: 4.363 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.9743, allocations: 9.656 kB / 0.6208 GB, free: 4.355 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.9743, allocations: 7.906 kB / 0.6209 GB, free: 4.348 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007029/0.9813, allocations: 1.746 MB / 0.6226 GB, free: 2.594 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.9824, allocations: 159.7 kB / 0.6227 GB, free: 2.438 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01803/1, allocations: 9.977 MB / 0.6325 GB, free: 8.223 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/1.002, allocations: 179.9 kB / 0.6326 GB, free: 8.047 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003483/1.003, allocations: 63.95 kB / 0.6327 GB, free: 7.984 MB / 474.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 97 * Array equations: 4 * Algorithm blocks: 1 * 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%) 2} * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0004827/1.003, allocations: 152.7 kB / 0.6328 GB, free: 7.832 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000268/1.003, allocations: 71.06 kB / 0.6329 GB, free: 7.762 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003896/1.007, allocations: 2.159 MB / 0.635 GB, free: 5.57 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.839e-05/1.007, allocations: 31.98 kB / 0.635 GB, free: 5.539 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/1.007, allocations: 0 / 0.635 GB, free: 5.539 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.831e-05/1.007, allocations: 7.969 kB / 0.635 GB, free: 5.531 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006775/1.014, allocations: 3.836 MB / 0.6388 GB, free: 1.605 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/1.014, allocations: 4 kB / 0.6388 GB, free: 1.602 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1564/1.171, allocations: 3.139 MB / 0.6419 GB, free: 191.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001662/1.171, allocations: 38.81 kB / 0.6419 GB, free: 191.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003429/1.171, allocations: 25.81 kB / 0.6419 GB, free: 191.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009176/1.172, allocations: 1.406 MB / 0.6433 GB, free: 190.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.172, allocations: 0 / 0.6433 GB, free: 190.4 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004581/1.177, allocations: 3.656 MB / 0.6469 GB, free: 190 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005815/1.183, allocations: 5.408 MB / 0.6521 GB, free: 189.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006254/1.183, allocations: 338.6 kB / 0.6525 GB, free: 189 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002834/1.183, allocations: 81.73 kB / 0.6525 GB, free: 189 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/1.185, allocations: 231.8 kB / 0.6528 GB, free: 189 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003369/1.185, allocations: 144.4 kB / 0.6529 GB, free: 189 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001207/1.185, allocations: 42.78 kB / 0.6529 GB, free: 189 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0002743/1.186, allocations: 275.9 kB / 0.6532 GB, free: 188.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001782/1.187, allocations: 338.1 kB / 0.6535 GB, free: 188.9 MB / 474.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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 91 * Array equations: 4 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004198/1.188, allocations: 226.6 kB / 0.6537 GB, free: 188.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003916/1.192, allocations: 2.515 MB / 0.6562 GB, free: 188.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/1.192, allocations: 0 / 0.6562 GB, free: 188.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005302/1.197, allocations: 2.257 MB / 0.6584 GB, free: 188.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009041/1.198, allocations: 109.6 kB / 0.6585 GB, free: 188.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0064/1.205, allocations: 2.969 MB / 0.6614 GB, free: 187.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001185/1.206, allocations: 1.259 MB / 0.6626 GB, free: 186.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.042e-06/1.206, allocations: 0 / 0.6626 GB, free: 186.8 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)