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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002229/0.002234, allocations: 185.7 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.316/2.316, allocations: 205.3 MB / 213.7 MB, free: 1.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001553/0.001553, allocations: 94.36 kB / 261.8 MB, free: 1.602 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2557/0.2557, allocations: 37.99 MB / 347.7 MB, free: 5.766 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.097e-05/2.088e-05, allocations: 4 kB / 410 MB, free: 35.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1062, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5023/0.6086, allocations: 112.1 MB / 0.5648 GB, free: 15.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/0.6089, allocations: 90.83 kB / 0.5649 GB, free: 15.34 MB / 378.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: Performance of FrontEnd - DAE generated: time 0.1366/0.7456, allocations: 28.01 MB / 0.5923 GB, free: 7.391 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.7456, allocations: 0 / 0.5923 GB, free: 7.391 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.432e-05/0.7457, allocations: 27.98 kB / 0.5923 GB, free: 7.363 MB / 394.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.00811/0.7538, allocations: 1.639 MB / 0.5939 GB, free: 5.719 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.7539, allocations: 8.031 kB / 0.5939 GB, free: 5.711 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001661/0.7556, allocations: 158.6 kB / 0.594 GB, free: 5.555 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009174/0.7648, allocations: 1.644 MB / 0.5957 GB, free: 4.156 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001199/0.7661, allocations: 492.9 kB / 0.5961 GB, free: 3.613 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006756/0.7668, allocations: 59.61 kB / 0.5962 GB, free: 3.559 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005063/0.7719, allocations: 1.628 MB / 0.5978 GB, free: 2.504 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005366/0.7773, allocations: 1.648 MB / 0.5994 GB, free: 1.289 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.52e-05/0.7774, allocations: 3.938 kB / 0.5994 GB, free: 1.285 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002299/0.7776, allocations: 7.984 kB / 0.5994 GB, free: 1.277 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000296/0.7779, allocations: 84.58 kB / 0.5995 GB, free: 1.203 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01956/0.7975, allocations: 5.636 MB / 0.605 GB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003971/0.8015, allocations: 1.275 MB / 0.6062 GB, free: 11.85 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002644/0.8042, allocations: 0.953 MB / 0.6072 GB, free: 11.25 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001873/0.8045, allocations: 14.86 kB / 0.6072 GB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003078/0.8076, allocations: 1.169 MB / 0.6083 GB, free: 10.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=125): time 5.451e-06/0.8076, allocations: 3.938 kB / 0.6083 GB, free: 10.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=126): time 0.01451/0.8222, allocations: 4.186 MB / 0.6124 GB, free: 6.332 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.391e-05/0.8223, allocations: 106.4 kB / 0.6125 GB, free: 6.211 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007249/0.823, allocations: 357.2 kB / 0.6128 GB, free: 5.855 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000443/0.8235, allocations: 41.69 kB / 0.6129 GB, free: 5.809 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004319/0.8239, allocations: 403 kB / 0.6133 GB, free: 5.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008356/0.8248, allocations: 414 kB / 0.6137 GB, free: 5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/0.8249, allocations: 0 / 0.6137 GB, free: 5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002602/0.8252, allocations: 370.7 kB / 0.614 GB, free: 4.629 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003177/0.8284, allocations: 0.8967 MB / 0.6149 GB, free: 3.734 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003796/0.8323, allocations: 1.045 MB / 0.6159 GB, free: 2.648 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004946/0.8373, allocations: 1.029 MB / 0.6169 GB, free: 1.625 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.692e-05/0.8374, allocations: 0 / 0.6169 GB, free: 1.625 MB / 410.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.02664/0.864, allocations: 3.817 MB / 0.6206 GB, free: 13.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001844/0.8643, allocations: 65.62 kB / 0.6207 GB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/0.8643, allocations: 0 / 0.6207 GB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01368/0.878, allocations: 1.676 MB / 0.6223 GB, free: 12.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001564/0.8796, allocations: 163.8 kB / 0.6225 GB, free: 11.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03632/0.916, allocations: 10.43 MB / 0.6327 GB, free: 1.191 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004248/0.9203, allocations: 183.8 kB / 0.6329 GB, free: 1.012 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004961/0.9208, allocations: 71.92 kB / 0.6329 GB, free: 0.9414 MB / 426.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 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005415/0.9214, allocations: 146 kB / 0.6331 GB, free: 0.793 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009985/0.9314, allocations: 1.95 MB / 0.635 GB, free: 14.81 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006697/0.9321, allocations: 79.02 kB / 0.635 GB, free: 14.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007236/0.9394, allocations: 2.12 MB / 0.6371 GB, free: 12.58 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001702/0.9396, allocations: 31.98 kB / 0.6371 GB, free: 12.55 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/0.9396, allocations: 4 kB / 0.6371 GB, free: 12.55 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.238e-05/0.9397, allocations: 7.969 kB / 0.6372 GB, free: 12.54 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01237/0.952, allocations: 3.779 MB / 0.6408 GB, free: 8.668 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/0.9521, allocations: 4 kB / 0.6408 GB, free: 8.664 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02433/0.9765, allocations: 2.825 MB / 0.6436 GB, free: 5.836 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002044/0.9767, allocations: 44.83 kB / 0.6436 GB, free: 5.789 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003833/0.9771, allocations: 23.97 kB / 0.6437 GB, free: 5.766 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001586/0.9787, allocations: 1.423 MB / 0.6451 GB, free: 4.227 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.558e-06/0.9787, allocations: 4 kB / 0.6451 GB, free: 4.223 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009464/0.9882, allocations: 3.563 MB / 0.6485 GB, free: 0.5391 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001353/0.9896, allocations: 348 kB / 0.6489 GB, free: 184 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004331/0.9901, allocations: 67.95 kB / 0.6489 GB, free: 116 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002965/0.9931, allocations: 235.7 kB / 0.6492 GB, free: 15.88 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009264/0.994, allocations: 193 kB / 0.6494 GB, free: 15.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002255/0.9943, allocations: 47.97 kB / 0.6494 GB, free: 15.65 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005289/0.9948, allocations: 271 kB / 0.6497 GB, free: 15.38 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.9948, allocations: 0 / 0.6497 GB, free: 15.38 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002103/0.997, allocations: 339.9 kB / 0.65 GB, free: 15.05 MB / 458.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.01059/1.008, allocations: 4.859 MB / 0.6547 GB, free: 10.08 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00853/1.016, allocations: 2.683 MB / 0.6573 GB, free: 7.359 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.016, allocations: 0 / 0.6573 GB, free: 7.359 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01017/1.026, allocations: 2.037 MB / 0.6593 GB, free: 5.312 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/1.028, allocations: 110.3 kB / 0.6594 GB, free: 5.207 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/1.04, allocations: 3.229 MB / 0.6626 GB, free: 1.902 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001166/1.041, allocations: 1.16 MB / 0.6637 GB, free: 0.7148 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001426/1.043, allocations: 343.9 kB / 0.6641 GB, free: 388 kB / 458.7 MB Notification: Performance of SimCode: time 1.303e-06/1.043, allocations: 0 / 0.6641 GB, free: 388 kB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.491/4.534, allocations: 25.63 MB / 0.6891 GB, free: 6.707 MB / 490.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)