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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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"}) [: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.2+maint.om/package.mo): time 0.001235/0.001235, allocations: 182.9 kB / 8.134 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9896/0.9896, allocations: 194.2 MB / 202.8 MB, free: 8.758 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001677/0.001677, allocations: 128.6 kB / 247.8 MB, free: 6.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1516/0.1516, allocations: 37.92 MB / 330.5 MB, free: 6.938 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1718/0.3234, allocations: 59.34 MB / 389.9 MB, free: 78.05 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07145/0.3949, allocations: 53.24 MB / 443.1 MB, free: 24.91 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.237/0.632, allocations: 107 MB / 0.5372 GB, free: 1.023 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001685/0.6322, allocations: 93.38 kB / 0.5373 GB, free: 0.9766 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/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.0/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.07984/0.712, allocations: 29.34 MB / 0.566 GB, free: 7.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.7121, allocations: 8 kB / 0.566 GB, free: 7.652 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008395/0.7129, allocations: 166.6 kB / 0.5662 GB, free: 7.488 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004721/0.7177, allocations: 1.646 MB / 0.5678 GB, free: 6.082 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005859/0.7183, allocations: 0.5015 MB / 0.5682 GB, free: 5.523 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002023/0.7185, allocations: 59.91 kB / 0.5683 GB, free: 5.465 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002372/0.7209, allocations: 1.686 MB / 0.57 GB, free: 4.355 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002208/0.7231, allocations: 1.69 MB / 0.5716 GB, free: 3.094 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.714e-05/0.7231, allocations: 4 kB / 0.5716 GB, free: 3.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001286/0.7232, allocations: 0 / 0.5716 GB, free: 3.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001469/0.7234, allocations: 84.77 kB / 0.5717 GB, free: 3.016 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008768/0.7322, allocations: 5.695 MB / 0.5772 GB, free: 14.45 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001816/0.734, allocations: 1.202 MB / 0.5784 GB, free: 13.64 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001213/0.7352, allocations: 0.9867 MB / 0.5794 GB, free: 13 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.387e-05/0.7354, allocations: 19.8 kB / 0.5794 GB, free: 12.98 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001434/0.7368, allocations: 1.15 MB / 0.5805 GB, free: 11.91 MB / 394.7 MB Notification: Performance of pre-optimization done (n=125): time 2.785e-06/0.7368, allocations: 0 / 0.5805 GB, free: 11.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=126): time 0.006967/0.7438, allocations: 4.196 MB / 0.5846 GB, free: 7.637 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.7438, allocations: 102.1 kB / 0.5847 GB, free: 7.516 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004074/0.7443, allocations: 365.1 kB / 0.5851 GB, free: 7.16 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001103/0.7444, allocations: 37.7 kB / 0.5851 GB, free: 7.117 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002262/0.7446, allocations: 316.5 kB / 0.5854 GB, free: 6.801 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003218/0.7449, allocations: 406.1 kB / 0.5858 GB, free: 6.398 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.319e-05/0.745, allocations: 0 / 0.5858 GB, free: 6.398 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.7452, allocations: 394.7 kB / 0.5862 GB, free: 6.004 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001166/0.7464, allocations: 0.9319 MB / 0.5871 GB, free: 5.066 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00125/0.7476, allocations: 1.072 MB / 0.5881 GB, free: 3.949 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001587/0.7492, allocations: 1.04 MB / 0.5891 GB, free: 2.914 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.7492, allocations: 4 kB / 0.5892 GB, free: 2.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.01022/0.7595, allocations: 4.066 MB / 0.5931 GB, free: 14.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.7595, allocations: 8 kB / 0.5931 GB, free: 14.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.7595, allocations: 0 / 0.5931 GB, free: 14.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00658/0.7661, allocations: 1.75 MB / 0.5948 GB, free: 13.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000883/0.767, allocations: 159.8 kB / 0.595 GB, free: 12.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01648/0.7835, allocations: 9.995 MB / 0.6048 GB, free: 2.652 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001468/0.785, allocations: 183.9 kB / 0.6049 GB, free: 2.473 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001752/0.7852, allocations: 63.94 kB / 0.605 GB, free: 2.41 MB / 410.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.0003213/0.7855, allocations: 144.8 kB / 0.6051 GB, free: 2.266 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001866/0.7857, allocations: 75.05 kB / 0.6052 GB, free: 2.191 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003391/0.7891, allocations: 2.155 MB / 0.6073 GB, free: 8 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001082/0.7892, allocations: 31.98 kB / 0.6073 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.7892, allocations: 4 kB / 0.6073 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.7893, allocations: 3.984 kB / 0.6073 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005868/0.7951, allocations: 3.813 MB / 0.6111 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.7952, allocations: 4 kB / 0.6111 GB, free: 12.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01181/0.807, allocations: 3.15 MB / 0.6141 GB, free: 8.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001416/0.8072, allocations: 40.84 kB / 0.6142 GB, free: 8.867 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002308/0.8074, allocations: 23.97 kB / 0.6142 GB, free: 8.844 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009719/0.8084, allocations: 1.403 MB / 0.6156 GB, free: 7.324 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.8084, allocations: 4 kB / 0.6156 GB, free: 7.32 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004767/0.8132, allocations: 3.667 MB / 0.6192 GB, free: 3.523 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006354/0.8195, allocations: 5.397 MB / 0.6244 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006565/0.8202, allocations: 344 kB / 0.6248 GB, free: 13.65 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002978/0.8205, allocations: 79.94 kB / 0.6248 GB, free: 13.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/0.822, allocations: 235.8 kB / 0.6251 GB, free: 13.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003577/0.8224, allocations: 148.7 kB / 0.6252 GB, free: 13.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001208/0.8225, allocations: 39.97 kB / 0.6252 GB, free: 13.16 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003006/0.8228, allocations: 279.2 kB / 0.6255 GB, free: 12.89 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001753/0.8246, allocations: 331.9 kB / 0.6258 GB, free: 12.56 MB / 442.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.0004094/0.825, allocations: 225.7 kB / 0.626 GB, free: 12.33 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00436/0.8293, allocations: 2.532 MB / 0.6285 GB, free: 9.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.8294, allocations: 0 / 0.6285 GB, free: 9.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005396/0.8348, allocations: 2.251 MB / 0.6307 GB, free: 7.512 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008138/0.8356, allocations: 113.8 kB / 0.6308 GB, free: 7.402 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006252/0.8419, allocations: 2.972 MB / 0.6337 GB, free: 4.371 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001216/0.8431, allocations: 1.257 MB / 0.6349 GB, free: 3.078 MB / 442.7 MB Notification: Performance of SimCode: time 1.022e-06/0.8431, allocations: 0 / 0.6349 GB, free: 3.078 MB / 442.7 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)