Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_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.0009901/0.0009902, allocations: 180.8 kB / 16.39 MB, free: 5.766 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.262/1.262, 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.0007427/0.0007426, allocations: 94.92 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1579/0.1579, allocations: 38.06 MB / 357.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002758/0.0002758, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2338, allocations: 56.33 MB / 480.4 MB, free: 9.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1165/0.3504, allocations: 101.1 MB / 0.5679 GB, free: 1.312 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/0.3507, allocations: 103.9 kB / 0.568 GB, free: 1.211 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04153/0.3922, allocations: 15.3 MB / 0.5829 GB, free: 1.727 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.376e-06/0.3923, allocations: 0 / 0.5829 GB, free: 1.727 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.288e-05/0.3923, allocations: 23.92 kB / 0.5829 GB, free: 1.703 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001991/0.3943, allocations: 0.8796 MB / 0.5838 GB, free: 0.7734 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.3944, allocations: 8.031 kB / 0.5838 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001647/0.3946, allocations: 94.52 kB / 0.5839 GB, free: 0.6641 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.3947, allocations: 71.11 kB / 0.584 GB, free: 0.5938 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002663/0.3974, allocations: 1.086 MB / 0.585 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.777e-05/0.3974, allocations: 37 kB / 0.5851 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.183e-05/0.3975, allocations: 51.98 kB / 0.5851 GB, free: 15.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009783/0.3985, allocations: 0.6219 MB / 0.5857 GB, free: 14.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.3985, allocations: 0 / 0.5857 GB, free: 14.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.102e-05/0.3986, allocations: 20 kB / 0.5857 GB, free: 14.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.3986, allocations: 15.95 kB / 0.5857 GB, free: 14.68 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008181/0.3994, allocations: 0.5074 MB / 0.5862 GB, free: 14.17 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003188/0.4026, allocations: 2.256 MB / 0.5884 GB, free: 11.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000769/0.4034, allocations: 477.1 kB / 0.5889 GB, free: 11.34 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.975e-05/0.4035, allocations: 8.062 kB / 0.5889 GB, free: 11.33 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.4035, allocations: 38.55 kB / 0.5889 GB, free: 11.29 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 1.994e-06/0.4035, allocations: 0 / 0.5889 GB, free: 11.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=47): time 0.003044/0.4066, allocations: 1.699 MB / 0.5906 GB, free: 9.516 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.4066, allocations: 89.19 kB / 0.5907 GB, free: 9.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004227/0.4071, allocations: 365 kB / 0.591 GB, free: 9.055 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.743e-05/0.4071, allocations: 33.7 kB / 0.5911 GB, free: 9.016 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002015/0.4073, allocations: 296.4 kB / 0.5913 GB, free: 8.719 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.4075, allocations: 161.7 kB / 0.5915 GB, free: 8.559 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.444e-05/0.4075, allocations: 12 kB / 0.5915 GB, free: 8.547 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.4076, allocations: 358.8 kB / 0.5919 GB, free: 8.188 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002952/0.4079, allocations: 188.9 kB / 0.592 GB, free: 8.004 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003606/0.4083, allocations: 303.7 kB / 0.5923 GB, free: 7.656 MB / 426.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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.001969/0.4103, allocations: 0.7373 MB / 0.593 GB, free: 6.898 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4103, allocations: 0 / 0.593 GB, free: 6.898 MB / 426.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001203/0.4115, allocations: 0.6871 MB / 0.5937 GB, free: 6.203 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.4116, allocations: 4 kB / 0.5937 GB, free: 6.199 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.4116, allocations: 4 kB / 0.5937 GB, free: 6.195 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003898/0.412, allocations: 137.1 kB / 0.5939 GB, free: 6.059 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004605/0.4124, allocations: 111.9 kB / 0.594 GB, free: 5.949 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002731/0.4152, allocations: 2.307 MB / 0.5962 GB, free: 3.508 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003836/0.4156, allocations: 28.03 kB / 0.5962 GB, free: 3.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.831e-05/0.4156, allocations: 23.98 kB / 0.5963 GB, free: 3.457 MB / 426.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[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (55): * Single equations (assignments): 54 * Array equations: 0 * 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 {(3,88.9%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00037/0.416, allocations: 217.7 kB / 0.5965 GB, free: 3.234 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.4161, allocations: 55.3 kB / 0.5965 GB, free: 3.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001101/0.4172, allocations: 0.6348 MB / 0.5971 GB, free: 2.531 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.269e-06/0.4172, allocations: 4 kB / 0.5971 GB, free: 2.527 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4173, allocations: 4 kB / 0.5972 GB, free: 2.523 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.4173, allocations: 7.984 kB / 0.5972 GB, free: 2.516 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002122/0.4194, allocations: 1.34 MB / 0.5985 GB, free: 1.094 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.4194, allocations: 4 kB / 0.5985 GB, free: 1.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003662/0.4198, allocations: 75.89 kB / 0.5985 GB, free: 1.016 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003537/0.4202, allocations: 129.1 kB / 0.5987 GB, free: 0.8867 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.832e-05/0.4202, allocations: 15.98 kB / 0.5987 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002457/0.4227, allocations: 2.33 MB / 0.601 GB, free: 14.41 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.4227, allocations: 3.984 kB / 0.601 GB, free: 14.41 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001324/0.424, allocations: 1.025 MB / 0.602 GB, free: 13.32 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.4242, allocations: 128.4 kB / 0.6021 GB, free: 13.17 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.085e-05/0.4242, allocations: 16.03 kB / 0.6021 GB, free: 13.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.4245, allocations: 15.98 kB / 0.6021 GB, free: 13.14 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.144e-05/0.4246, allocations: 40.33 kB / 0.6022 GB, free: 13.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.932e-05/0.4246, allocations: 16 kB / 0.6022 GB, free: 13.08 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002998/0.4249, allocations: 287.1 kB / 0.6024 GB, free: 12.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4249, allocations: 0 / 0.6024 GB, free: 12.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000584/0.4255, allocations: 152 kB / 0.6026 GB, free: 12.65 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (meterDC.pav,meterAC.pav,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 (42): * Single equations (assignments): 40 * Array equations: 0 * 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 {(3,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001695/0.4272, allocations: 1.93 MB / 0.6045 GB, free: 10.65 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001011/0.4282, allocations: 0.6609 MB / 0.6051 GB, free: 9.984 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.4282, allocations: 0 / 0.6051 GB, free: 9.984 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005878/0.4288, allocations: 425.9 kB / 0.6055 GB, free: 9.555 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005475/0.4294, allocations: 121.9 kB / 0.6056 GB, free: 9.438 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005283/0.4347, allocations: 5.895 MB / 0.6114 GB, free: 3.406 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004814/0.4352, allocations: 0.9372 MB / 0.6123 GB, free: 2.441 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003327/0.4355, allocations: 108.7 kB / 0.6124 GB, free: 2.332 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002451/0.4358, allocations: 199.4 kB / 0.6126 GB, free: 2.137 MB / 442.7 MB Notification: Performance of SimCode: time 4.31e-07/0.4358, allocations: 0 / 0.6126 GB, free: 2.137 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02362/0.4594, allocations: 11.22 MB / 0.6236 GB, free: 6.965 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002103/0.4597, allocations: 215.9 kB / 0.6238 GB, free: 6.723 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.951/2.411, allocations: 0 / 0.6238 GB, free: 6.723 MB / 458.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat does not exist to compare? outputFormat=mat