Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.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.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",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.0009678/0.0009678, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.222/1.222, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.000761/0.000761, allocations: 80.22 kB / 270.8 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1567/0.1567, allocations: 38.06 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002968/0.0002968, allocations: 16 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2336, allocations: 56.33 MB / 480.4 MB, free: 9.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1316/0.3653, allocations: 111.1 MB / 0.5777 GB, free: 7.25 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/0.3656, allocations: 95.95 kB / 0.5778 GB, free: 7.156 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05963/0.4252, allocations: 21.86 MB / 0.5991 GB, free: 1.035 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4253, allocations: 0 / 0.5991 GB, free: 1.035 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.532e-05/0.4253, allocations: 16 kB / 0.5991 GB, free: 1.02 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002319/0.4276, allocations: 1.032 MB / 0.6001 GB, free: 15.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.4277, allocations: 8.031 kB / 0.6001 GB, free: 15.93 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002483/0.4279, allocations: 122.6 kB / 0.6003 GB, free: 15.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007024/0.4287, allocations: 126.9 kB / 0.6004 GB, free: 15.67 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002996/0.4317, allocations: 1.152 MB / 0.6015 GB, free: 14.48 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.441e-05/0.4317, allocations: 53.3 kB / 0.6016 GB, free: 14.43 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001558/0.4319, allocations: 67.84 kB / 0.6016 GB, free: 14.36 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.4335, allocations: 0.9988 MB / 0.6026 GB, free: 13.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.4335, allocations: 0 / 0.6026 GB, free: 13.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.971e-05/0.4336, allocations: 32 kB / 0.6026 GB, free: 13.29 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001445/0.4337, allocations: 65.27 kB / 0.6027 GB, free: 13.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001469/0.4352, allocations: 0.9387 MB / 0.6036 GB, free: 12.29 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004813/0.44, allocations: 3.209 MB / 0.6067 GB, free: 8.969 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.4411, allocations: 0.7063 MB / 0.6074 GB, free: 8.242 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.835e-05/0.4412, allocations: 17.55 kB / 0.6074 GB, free: 8.227 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.4412, allocations: 39.06 kB / 0.6075 GB, free: 8.18 MB / 442.7 MB Notification: Performance of pre-optimization done (n=77): time 2.635e-06/0.4413, allocations: 4 kB / 0.6075 GB, free: 8.176 MB / 442.7 MB Notification: Performance of matching and sorting (n=79): time 0.003881/0.4451, allocations: 2.763 MB / 0.6102 GB, free: 5.262 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.4452, allocations: 97.55 kB / 0.6103 GB, free: 5.148 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004033/0.4456, allocations: 373 kB / 0.6106 GB, free: 4.777 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.375e-05/0.4457, allocations: 37.83 kB / 0.6107 GB, free: 4.734 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002265/0.4459, allocations: 347.8 kB / 0.611 GB, free: 4.387 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000203/0.4461, allocations: 276 kB / 0.6113 GB, free: 4.113 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.692e-05/0.4462, allocations: 12 kB / 0.6113 GB, free: 4.102 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.4463, allocations: 382.7 kB / 0.6116 GB, free: 3.719 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004941/0.4468, allocations: 349.8 kB / 0.612 GB, free: 3.379 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005856/0.4474, allocations: 0.5127 MB / 0.6125 GB, free: 2.809 MB / 442.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.00838/0.4558, allocations: 2.733 MB / 0.6151 GB, free: 56 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.4558, allocations: 0 / 0.6151 GB, free: 56 kB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001639/0.4575, allocations: 1.102 MB / 0.6162 GB, free: 14.93 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.4575, allocations: 4 kB / 0.6162 GB, free: 14.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.4575, allocations: 11.94 kB / 0.6162 GB, free: 14.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001171/0.4577, allocations: 33.33 kB / 0.6163 GB, free: 14.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008267/0.4585, allocations: 203.7 kB / 0.6165 GB, free: 14.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000999/0.4595, allocations: 1.338 MB / 0.6178 GB, free: 13.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004977/0.46, allocations: 39.95 kB / 0.6178 GB, free: 13.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-05/0.4601, allocations: 28 kB / 0.6178 GB, free: 13.14 MB / 458.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 90 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 prepare postOptimizeDAE: time 0.0004181/0.4605, allocations: 275.9 kB / 0.6181 GB, free: 12.86 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.4607, allocations: 63.23 kB / 0.6182 GB, free: 12.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001508/0.4622, allocations: 1.025 MB / 0.6192 GB, free: 11.75 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.743e-05/0.4622, allocations: 16 kB / 0.6192 GB, free: 11.73 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.4622, allocations: 0 / 0.6192 GB, free: 11.73 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.4622, allocations: 7.984 kB / 0.6192 GB, free: 11.72 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003302/0.4655, allocations: 2.062 MB / 0.6212 GB, free: 9.523 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.4656, allocations: 8.031 kB / 0.6212 GB, free: 9.516 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007385/0.4663, allocations: 167.8 kB / 0.6214 GB, free: 9.352 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.331e-05/0.4664, allocations: 32.84 kB / 0.6214 GB, free: 9.316 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.872e-05/0.4665, allocations: 16 kB / 0.6214 GB, free: 9.301 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008538/0.4673, allocations: 1.343 MB / 0.6227 GB, free: 7.824 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.4674, allocations: 4 kB / 0.6227 GB, free: 7.82 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.4693, allocations: 1.83 MB / 0.6245 GB, free: 5.781 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.4695, allocations: 140.3 kB / 0.6246 GB, free: 5.625 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.408e-05/0.4696, allocations: 20 kB / 0.6247 GB, free: 5.605 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004186/0.47, allocations: 43.94 kB / 0.6247 GB, free: 5.562 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.73e-05/0.4701, allocations: 64.33 kB / 0.6248 GB, free: 5.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.932e-05/0.4702, allocations: 27.98 kB / 0.6248 GB, free: 5.473 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003033/0.4705, allocations: 291.1 kB / 0.6251 GB, free: 5.188 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4705, allocations: 0 / 0.6251 GB, free: 5.188 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0007378/0.4712, allocations: 199.9 kB / 0.6253 GB, free: 4.992 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 72 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.002703/0.4739, allocations: 3.74 MB / 0.6289 GB, free: 1.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.4753, allocations: 0.9783 MB / 0.6299 GB, free: 84 kB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4754, allocations: 0 / 0.6299 GB, free: 84 kB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006594/0.476, allocations: 0.5458 MB / 0.6304 GB, free: 15.53 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006424/0.4767, allocations: 121.9 kB / 0.6305 GB, free: 15.41 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008014/0.4847, allocations: 8.236 MB / 0.6386 GB, free: 6.949 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006671/0.4854, allocations: 1.033 MB / 0.6396 GB, free: 5.887 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006251/0.486, allocations: 201.3 kB / 0.6398 GB, free: 5.688 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003777/0.4864, allocations: 267.3 kB / 0.64 GB, free: 5.426 MB / 474.7 MB Notification: Performance of SimCode: time 3.397e-06/0.4864, allocations: 0 / 0.64 GB, free: 5.426 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1851/0.6716, allocations: 13.96 MB / 0.6536 GB, free: 139.7 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001237/0.6718, allocations: 220.5 kB / 0.6539 GB, free: 139.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.171/2.843, allocations: 0 / 0.6539 GB, free: 139.5 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat does not exist to compare? outputFormat=mat