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.001066/0.001066, allocations: 174.5 kB / 13.63 MB, free: 1.684 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.647/1.647, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0008786/0.0008786, allocations: 86.72 kB / 267.5 MB, free: 14.09 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1849/0.1849, allocations: 37.98 MB / 353.5 MB, free: 1.734 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.531e-05/3.58e-05, allocations: 4 kB / 417.8 MB, free: 29.01 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1199, allocations: 56.32 MB / 474.2 MB, free: 4.684 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4333/0.5532, allocations: 111 MB / 0.5715 GB, free: 7.547 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/0.5536, allocations: 95.69 kB / 0.5716 GB, free: 7.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06546/0.6191, allocations: 21.83 MB / 0.5929 GB, free: 4.746 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.6191, allocations: 0 / 0.5929 GB, free: 4.746 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.162e-05/0.6192, allocations: 20 kB / 0.5929 GB, free: 4.727 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002452/0.6216, allocations: 0.944 MB / 0.5938 GB, free: 3.785 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.6217, allocations: 8.031 kB / 0.5938 GB, free: 3.777 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003577/0.6221, allocations: 117 kB / 0.5939 GB, free: 3.691 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009587/0.623, allocations: 130.5 kB / 0.5941 GB, free: 3.566 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003617/0.6267, allocations: 1.15 MB / 0.5952 GB, free: 2.559 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.828e-05/0.6267, allocations: 44.62 kB / 0.5952 GB, free: 2.535 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002639/0.627, allocations: 68.11 kB / 0.5953 GB, free: 2.488 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002198/0.6292, allocations: 0.982 MB / 0.5963 GB, free: 1.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.384e-05/0.6293, allocations: 0 / 0.5963 GB, free: 1.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.955e-05/0.6294, allocations: 25.5 kB / 0.5963 GB, free: 1.742 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001823/0.6296, allocations: 67.64 kB / 0.5963 GB, free: 1.684 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001791/0.6314, allocations: 0.9277 MB / 0.5972 GB, free: 1.023 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005907/0.6373, allocations: 3.21 MB / 0.6004 GB, free: 14.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.6386, allocations: 0.6977 MB / 0.6011 GB, free: 13.78 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006638/0.6393, allocations: 448.3 kB / 0.6015 GB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.043e-05/0.6393, allocations: 11.94 kB / 0.6015 GB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/0.6394, allocations: 38.38 kB / 0.6015 GB, free: 13.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=77): time 3.777e-06/0.6394, allocations: 0 / 0.6015 GB, free: 13.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=79): time 0.003832/0.6432, allocations: 2.104 MB / 0.6036 GB, free: 11.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/0.6433, allocations: 85.67 kB / 0.6037 GB, free: 11.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004937/0.6438, allocations: 365 kB / 0.604 GB, free: 11.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.415e-05/0.6439, allocations: 36.95 kB / 0.6041 GB, free: 11.28 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002214/0.6441, allocations: 349 kB / 0.6044 GB, free: 11.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002464/0.6444, allocations: 278.2 kB / 0.6047 GB, free: 10.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.781e-05/0.6444, allocations: 13.5 kB / 0.6047 GB, free: 10.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.6446, allocations: 381.6 kB / 0.605 GB, free: 10.42 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005267/0.6451, allocations: 344.5 kB / 0.6054 GB, free: 10.19 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006336/0.6458, allocations: 0.5077 MB / 0.6059 GB, free: 9.746 MB / 410.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.0095/0.6553, allocations: 2.749 MB / 0.6085 GB, free: 7.254 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.867e-06/0.6553, allocations: 4 kB / 0.6085 GB, free: 7.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002036/0.6574, allocations: 1.096 MB / 0.6096 GB, free: 6.383 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.6574, allocations: 12.09 kB / 0.6096 GB, free: 6.371 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.6574, allocations: 4 kB / 0.6096 GB, free: 6.367 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001672/0.6576, allocations: 36.09 kB / 0.6097 GB, free: 6.332 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009491/0.6586, allocations: 202 kB / 0.6099 GB, free: 6.141 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001372/0.66, allocations: 1.399 MB / 0.6112 GB, free: 4.691 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006404/0.6606, allocations: 38.58 kB / 0.6113 GB, free: 4.664 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.308e-05/0.6607, allocations: 31.92 kB / 0.6113 GB, free: 4.637 MB / 410.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 89 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002231/0.6609, allocations: 154.1 kB / 0.6114 GB, free: 4.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001525/0.6611, allocations: 67.3 kB / 0.6115 GB, free: 4.434 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001729/0.6628, allocations: 1.002 MB / 0.6125 GB, free: 3.684 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.394e-05/0.6629, allocations: 23.11 kB / 0.6125 GB, free: 3.664 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.6629, allocations: 4 kB / 0.6125 GB, free: 3.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.6629, allocations: 7.984 kB / 0.6125 GB, free: 3.652 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003711/0.6666, allocations: 2.072 MB / 0.6145 GB, free: 1.871 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/0.6667, allocations: 8 kB / 0.6145 GB, free: 1.863 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007458/0.6674, allocations: 170.2 kB / 0.6147 GB, free: 1.703 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001264/0.6676, allocations: 31.78 kB / 0.6147 GB, free: 1.672 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.866e-05/0.6677, allocations: 26.7 kB / 0.6148 GB, free: 1.656 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001138/0.6688, allocations: 1.384 MB / 0.6161 GB, free: 232 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/0.6688, allocations: 7.938 kB / 0.6161 GB, free: 224 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002359/0.6712, allocations: 1.815 MB / 0.6179 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002463/0.6714, allocations: 138.7 kB / 0.618 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001242/0.6716, allocations: 26.3 kB / 0.6181 GB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00045/0.672, allocations: 36.45 kB / 0.6181 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.6722, allocations: 62.45 kB / 0.6181 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.763e-05/0.6722, allocations: 25 kB / 0.6182 GB, free: 14.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004182/0.6726, allocations: 289.2 kB / 0.6184 GB, free: 14.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6727, allocations: 0 / 0.6184 GB, free: 14.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008997/0.6736, allocations: 197.1 kB / 0.6186 GB, free: 13.92 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 71 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003468/0.677, allocations: 3.732 MB / 0.6223 GB, free: 10.15 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.6788, allocations: 0.9666 MB / 0.6232 GB, free: 9.172 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.6788, allocations: 0 / 0.6232 GB, free: 9.172 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007826/0.6796, allocations: 0.5466 MB / 0.6238 GB, free: 8.613 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007608/0.6803, allocations: 126 kB / 0.6239 GB, free: 8.492 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003935/0.6843, allocations: 1.907 MB / 0.6257 GB, free: 6.484 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007657/0.6851, allocations: 1.037 MB / 0.6268 GB, free: 5.422 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006805/0.6858, allocations: 197.3 kB / 0.6269 GB, free: 5.227 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004869/0.6863, allocations: 269.5 kB / 0.6272 GB, free: 4.965 MB / 426.7 MB Notification: Performance of SimCode: time 8.62e-07/0.6863, allocations: 0 / 0.6272 GB, free: 4.965 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03345/0.7197, allocations: 14.03 MB / 0.6409 GB, free: 6.969 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/0.72, allocations: 186.4 kB / 0.6411 GB, free: 6.742 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.41/3.13, allocations: 4 kB / 0.6411 GB, free: 6.738 MB / 442.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