Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.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.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter",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.001414/0.001413, 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.703/1.703, 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.0008593/0.0008592, allocations: 89.31 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1727/0.1727, allocations: 37.98 MB / 348 MB, free: 7.785 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.951e-05/1.955e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1231, allocations: 56.32 MB / 467 MB, free: 6.477 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4581/0.5812, allocations: 111.7 MB / 0.5651 GB, free: 15.16 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003042/0.5815, allocations: 89.05 kB / 0.5652 GB, free: 15.07 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 ac_dc.modulator.m not found in scope PowerSystems.AC3ph.Inverters.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 ac_dc.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter.Modulator.$for loop scope$. Notification: Performance of FrontEnd - DAE generated: time 0.06469/0.6462, allocations: 23.9 MB / 0.5885 GB, free: 6.969 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.6463, allocations: 0 / 0.5885 GB, free: 6.969 MB / 427.1 MB Notification: Performance of Transformations before backend: time 4.671e-05/0.6463, allocations: 23.94 kB / 0.5886 GB, free: 6.945 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.00253/0.6489, allocations: 1.331 MB / 0.5899 GB, free: 5.535 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.6489, allocations: 12.03 kB / 0.5899 GB, free: 5.523 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007425/0.6497, allocations: 159.3 kB / 0.59 GB, free: 5.367 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003494/0.6532, allocations: 1.394 MB / 0.5914 GB, free: 3.934 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/0.6534, allocations: 143.1 kB / 0.5915 GB, free: 3.773 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001796/0.6535, allocations: 60.75 kB / 0.5916 GB, free: 3.715 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001429/0.655, allocations: 0.9332 MB / 0.5925 GB, free: 2.781 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001825/0.6568, allocations: 1.303 MB / 0.5938 GB, free: 1.402 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/0.6569, allocations: 4 kB / 0.5938 GB, free: 1.398 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.964e-05/0.657, allocations: 7.984 kB / 0.5938 GB, free: 1.391 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.3e-05/0.657, allocations: 61.97 kB / 0.5938 GB, free: 1.332 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005534/0.6626, allocations: 4.583 MB / 0.5983 GB, free: 12.61 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001189/0.6638, allocations: 0.8694 MB / 0.5992 GB, free: 11.7 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006684/0.6645, allocations: 475.7 kB / 0.5996 GB, free: 11.23 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.453e-05/0.6645, allocations: 12.55 kB / 0.5996 GB, free: 11.21 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008544/0.6654, allocations: 0.6207 MB / 0.6002 GB, free: 10.57 MB / 443.1 MB Notification: Performance of pre-optimization done (n=82): time 3.416e-06/0.6654, allocations: 0 / 0.6002 GB, free: 10.57 MB / 443.1 MB Notification: Performance of matching and sorting (n=83): time 0.003497/0.6689, allocations: 2.281 MB / 0.6025 GB, free: 8.211 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.669, allocations: 123.4 kB / 0.6026 GB, free: 8.066 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004448/0.6695, allocations: 413.9 kB / 0.603 GB, free: 7.656 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 6.887e-05/0.6695, allocations: 45.62 kB / 0.603 GB, free: 7.605 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002872/0.6698, allocations: 462.9 kB / 0.6035 GB, free: 7.145 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.67, allocations: 276.1 kB / 0.6037 GB, free: 6.871 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.231e-05/0.6701, allocations: 0 / 0.6037 GB, free: 6.871 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.6703, allocations: 386.7 kB / 0.6041 GB, free: 6.484 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006219/0.6709, allocations: 490.5 kB / 0.6046 GB, free: 6.004 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007587/0.6717, allocations: 0.7332 MB / 0.6053 GB, free: 5.156 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007619/0.6724, allocations: 0.5756 MB / 0.6058 GB, free: 4.586 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.6725, allocations: 4 kB / 0.6058 GB, free: 4.582 MB / 443.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002154/0.6746, allocations: 1.468 MB / 0.6073 GB, free: 3.082 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.928e-05/0.6747, allocations: 61.67 kB / 0.6073 GB, free: 3.016 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001651/0.6764, allocations: 1.229 MB / 0.6085 GB, free: 1.762 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000345/0.6767, allocations: 101.6 kB / 0.6086 GB, free: 1.656 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007289/0.6775, allocations: 195.7 kB / 0.6088 GB, free: 1.465 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002209/0.6797, allocations: 2.871 MB / 0.6116 GB, free: 14.36 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006066/0.6803, allocations: 55.84 kB / 0.6117 GB, free: 14.3 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.6804, allocations: 67.98 kB / 0.6117 GB, free: 14.23 MB / 459.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 108 * Array equations: 2 * 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: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002431/0.6807, allocations: 163.7 kB / 0.6119 GB, free: 14.07 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001405/0.6821, allocations: 0.9646 MB / 0.6128 GB, free: 13.08 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.6822, allocations: 75.22 kB / 0.6129 GB, free: 13 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/0.6838, allocations: 1.037 MB / 0.6139 GB, free: 11.93 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-05/0.6839, allocations: 19.95 kB / 0.6139 GB, free: 11.91 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.6839, allocations: 4 kB / 0.6139 GB, free: 11.91 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.6839, allocations: 3.984 kB / 0.6139 GB, free: 11.91 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002982/0.6869, allocations: 2.113 MB / 0.616 GB, free: 9.719 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.6869, allocations: 0 / 0.616 GB, free: 9.719 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007121/0.6876, allocations: 151.8 kB / 0.6162 GB, free: 9.57 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.872e-05/0.6877, allocations: 24.84 kB / 0.6162 GB, free: 9.543 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.264e-05/0.6878, allocations: 15.97 kB / 0.6162 GB, free: 9.527 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000817/0.6886, allocations: 1.337 MB / 0.6175 GB, free: 8.074 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.6886, allocations: 0 / 0.6175 GB, free: 8.074 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002075/0.6907, allocations: 1.696 MB / 0.6192 GB, free: 6.305 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000351/0.691, allocations: 236.1 kB / 0.6194 GB, free: 6.055 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000177/0.6912, allocations: 75.81 kB / 0.6194 GB, free: 5.98 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007073/0.6919, allocations: 99.88 kB / 0.6195 GB, free: 5.883 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.6921, allocations: 52.7 kB / 0.6196 GB, free: 5.832 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.166e-05/0.6921, allocations: 31.97 kB / 0.6196 GB, free: 5.801 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0003237/0.6925, allocations: 306.9 kB / 0.6199 GB, free: 5.5 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6925, allocations: 4 kB / 0.6199 GB, free: 5.496 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.001002/0.6935, allocations: 216.2 kB / 0.6201 GB, free: 5.285 MB / 459.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 61 * Array equations: 2 * 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.002615/0.6961, allocations: 2.598 MB / 0.6227 GB, free: 2.609 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.002007/0.6981, allocations: 1.513 MB / 0.6241 GB, free: 1.062 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.6981, allocations: 0 / 0.6241 GB, free: 1.062 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006959/0.6988, allocations: 0.5553 MB / 0.6247 GB, free: 0.5 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000671/0.6995, allocations: 111 kB / 0.6248 GB, free: 400 kB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003493/0.703, allocations: 2.077 MB / 0.6268 GB, free: 14.26 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006967/0.7037, allocations: 1.13 MB / 0.6279 GB, free: 13.11 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.0006245/0.7044, allocations: 233.7 kB / 0.6281 GB, free: 12.88 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004514/0.7048, allocations: 327.3 kB / 0.6285 GB, free: 12.55 MB / 475.1 MB Notification: Performance of SimCode: time 7.62e-07/0.7048, allocations: 0 / 0.6285 GB, free: 12.55 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2973/1.002, allocations: 15.64 MB / 0.6437 GB, free: 139.1 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001676/1.002, allocations: 146.7 kB / 0.6439 GB, free: 138.9 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.455/3.457, allocations: 1.812 kB / 0.6439 GB, free: 138.9 MB / 475.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter_res.mat does not exist to compare? outputFormat=mat