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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001205/0.001205, allocations: 176.4 kB / 8.346 MB, free: 0.7266 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.783/1.783, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008792/0.0008792, allocations: 88.22 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1632/0.1632, allocations: 37.98 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.666e-05/2.667e-05, allocations: 4 kB / 410.7 MB, free: 46.85 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1438, allocations: 56.32 MB / 467 MB, free: 6.469 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4674/0.6113, allocations: 112.1 MB / 0.5655 GB, free: 14.65 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.6116, allocations: 95.94 kB / 0.5656 GB, free: 14.55 MB / 411.1 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.08446/0.6961, allocations: 28.01 MB / 0.593 GB, free: 2.277 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.6962, allocations: 4 kB / 0.593 GB, free: 2.273 MB / 427.1 MB Notification: Performance of Transformations before backend: time 6.398e-05/0.6963, allocations: 20 kB / 0.593 GB, free: 2.254 MB / 427.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.004126/0.7004, allocations: 1.641 MB / 0.5946 GB, free: 0.5312 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.7004, allocations: 11.97 kB / 0.5946 GB, free: 0.5195 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007344/0.7012, allocations: 162.6 kB / 0.5948 GB, free: 368 kB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004823/0.706, allocations: 1.639 MB / 0.5964 GB, free: 14.68 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006804/0.7067, allocations: 490.3 kB / 0.5968 GB, free: 14.12 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002119/0.7069, allocations: 63.98 kB / 0.5969 GB, free: 14.06 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002659/0.7096, allocations: 1.624 MB / 0.5985 GB, free: 12.44 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002676/0.7123, allocations: 1.658 MB / 0.6001 GB, free: 10.73 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.683e-05/0.7123, allocations: 0 / 0.6001 GB, free: 10.73 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001199/0.7125, allocations: 4 kB / 0.6001 GB, free: 10.73 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001744/0.7126, allocations: 85.94 kB / 0.6002 GB, free: 10.65 MB / 443.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01008/0.7227, allocations: 5.639 MB / 0.6057 GB, free: 4.91 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002288/0.7251, allocations: 1.268 MB / 0.6069 GB, free: 3.625 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001429/0.7265, allocations: 0.966 MB / 0.6079 GB, free: 2.656 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001059/0.7267, allocations: 17.31 kB / 0.6079 GB, free: 2.641 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001821/0.7285, allocations: 1.16 MB / 0.609 GB, free: 1.461 MB / 443.1 MB Notification: Performance of pre-optimization done (n=125): time 4.568e-06/0.7285, allocations: 3.938 kB / 0.609 GB, free: 1.457 MB / 443.1 MB Notification: Performance of matching and sorting (n=126): time 0.00803/0.7365, allocations: 4.188 MB / 0.6131 GB, free: 13.19 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.963e-05/0.7366, allocations: 102.4 kB / 0.6132 GB, free: 13.07 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004901/0.7371, allocations: 357.2 kB / 0.6135 GB, free: 12.72 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001168/0.7372, allocations: 41.69 kB / 0.6136 GB, free: 12.67 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003505/0.7376, allocations: 364.6 kB / 0.6139 GB, free: 12.31 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004129/0.738, allocations: 410 kB / 0.6143 GB, free: 11.9 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.201e-05/0.7381, allocations: 0 / 0.6143 GB, free: 11.9 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0002539/0.7384, allocations: 402.7 kB / 0.6147 GB, free: 11.5 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/0.7397, allocations: 0.8967 MB / 0.6156 GB, free: 10.61 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001431/0.7411, allocations: 1.038 MB / 0.6166 GB, free: 9.527 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/0.7429, allocations: 1.033 MB / 0.6176 GB, free: 8.5 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.743, allocations: 0 / 0.6176 GB, free: 8.5 MB / 459.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.009825/0.7528, allocations: 3.839 MB / 0.6214 GB, free: 4.625 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.263e-05/0.7529, allocations: 65.62 kB / 0.6214 GB, free: 4.555 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.7529, allocations: 0 / 0.6214 GB, free: 4.555 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004881/0.7578, allocations: 1.676 MB / 0.6231 GB, free: 2.871 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008343/0.7587, allocations: 171.7 kB / 0.6232 GB, free: 2.703 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01861/0.7773, allocations: 10.41 MB / 0.6334 GB, free: 8.047 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001722/0.7791, allocations: 183.8 kB / 0.6336 GB, free: 7.867 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001745/0.7793, allocations: 67.94 kB / 0.6336 GB, free: 7.801 MB / 475.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 () * 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.000449/0.7797, allocations: 150 kB / 0.6338 GB, free: 7.648 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003566/0.7833, allocations: 1.946 MB / 0.6357 GB, free: 5.672 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001786/0.7835, allocations: 83.02 kB / 0.6358 GB, free: 5.59 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003727/0.7872, allocations: 2.116 MB / 0.6378 GB, free: 3.441 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.95e-05/0.7873, allocations: 35.98 kB / 0.6379 GB, free: 3.406 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.7874, allocations: 4 kB / 0.6379 GB, free: 3.402 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/0.7874, allocations: 7.969 kB / 0.6379 GB, free: 3.395 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3302/1.118, allocations: 3.779 MB / 0.6416 GB, free: 136.5 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/1.118, allocations: 2.703 kB / 0.6416 GB, free: 136.5 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01305/1.131, allocations: 2.823 MB / 0.6443 GB, free: 136.5 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001829/1.131, allocations: 40.16 kB / 0.6444 GB, free: 136.5 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003514/1.131, allocations: 23.45 kB / 0.6444 GB, free: 136.5 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/1.133, allocations: 1.42 MB / 0.6458 GB, free: 135.2 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/1.133, allocations: 7.016 kB / 0.6458 GB, free: 135.2 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006616/1.139, allocations: 3.57 MB / 0.6493 GB, free: 134.7 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007336/1.14, allocations: 345.2 kB / 0.6496 GB, free: 134.6 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002575/1.14, allocations: 68.34 kB / 0.6496 GB, free: 134.6 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00146/1.142, allocations: 233.2 kB / 0.6499 GB, free: 134.6 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005207/1.142, allocations: 196 kB / 0.6501 GB, free: 134.6 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/1.142, allocations: 39 kB / 0.6501 GB, free: 134.6 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0003894/1.143, allocations: 274.5 kB / 0.6504 GB, free: 134.6 MB / 475.1 MB Notification: Performance of sort global known variables: time 2.7e-07/1.143, allocations: 1.406 kB / 0.6504 GB, free: 134.6 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.001634/1.144, allocations: 344.6 kB / 0.6507 GB, free: 134.6 MB / 475.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]) * 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.00685/1.151, allocations: 4.84 MB / 0.6554 GB, free: 132.9 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.005528/1.157, allocations: 2.69 MB / 0.658 GB, free: 132.6 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/1.157, allocations: 4.203 kB / 0.658 GB, free: 132.6 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006191/1.163, allocations: 2.09 MB / 0.6601 GB, free: 132.5 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/1.164, allocations: 124.4 kB / 0.6602 GB, free: 132.5 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007271/1.171, allocations: 3.148 MB / 0.6633 GB, free: 131.7 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008576/1.172, allocations: 1.168 MB / 0.6644 GB, free: 131 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.0009476/1.173, allocations: 308.6 kB / 0.6647 GB, free: 131 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006075/1.174, allocations: 328.9 kB / 0.665 GB, free: 130.8 MB / 475.1 MB Notification: Performance of SimCode: time 1.583e-06/1.174, allocations: 4 kB / 0.665 GB, free: 130.8 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05585/1.23, allocations: 28.75 MB / 0.6931 GB, free: 124.3 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002411/1.23, allocations: 147.3 kB / 0.6932 GB, free: 124.1 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.738/3.968, allocations: 6.547 kB / 0.6933 GB, free: 124.1 MB / 475.1 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) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_res.mat does not exist to compare? outputFormat=mat