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.0009843/0.0009842, allocations: 175.1 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.47/1.47, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.000935/0.000935, allocations: 78.72 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1679/0.1679, allocations: 37.99 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.426e-05/3.43e-05, allocations: 0 / 417.8 MB, free: 29.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1174, allocations: 56.32 MB / 474.2 MB, free: 4.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3972/0.5146, allocations: 101 MB / 0.5617 GB, free: 1.633 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.5149, allocations: 93.56 kB / 0.5618 GB, free: 1.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04232/0.5572, allocations: 15.3 MB / 0.5767 GB, free: 4.461 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.5573, allocations: 4 kB / 0.5767 GB, free: 4.457 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.626e-05/0.5573, allocations: 19.94 kB / 0.5767 GB, free: 4.438 MB / 378.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.001346/0.5587, allocations: 0.804 MB / 0.5775 GB, free: 3.625 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.5587, allocations: 8.031 kB / 0.5775 GB, free: 3.617 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001062/0.5588, allocations: 93.27 kB / 0.5776 GB, free: 3.547 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.559, allocations: 75.05 kB / 0.5777 GB, free: 3.473 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002536/0.5615, allocations: 1.069 MB / 0.5787 GB, free: 2.531 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.022e-05/0.5615, allocations: 36.44 kB / 0.5787 GB, free: 2.512 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.164e-05/0.5616, allocations: 47.81 kB / 0.5788 GB, free: 2.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009139/0.5626, allocations: 0.6157 MB / 0.5794 GB, free: 2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.5626, allocations: 7.938 kB / 0.5794 GB, free: 1.992 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.696e-05/0.5626, allocations: 20.56 kB / 0.5794 GB, free: 1.988 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.5627, allocations: 15.95 kB / 0.5794 GB, free: 1.973 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007525/0.5634, allocations: 0.4965 MB / 0.5799 GB, free: 1.621 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002953/0.5664, allocations: 2.237 MB / 0.5821 GB, free: 15.67 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007577/0.5672, allocations: 478.2 kB / 0.5826 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005801/0.5678, allocations: 333.5 kB / 0.5829 GB, free: 15.08 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.03e-05/0.5678, allocations: 8 kB / 0.5829 GB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.5678, allocations: 45.23 kB / 0.5829 GB, free: 15.02 MB / 394.7 MB Notification: Performance of pre-optimization done (n=45): time 2.465e-06/0.5679, allocations: 0 / 0.5829 GB, free: 15.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=47): time 0.002193/0.5701, allocations: 1.338 MB / 0.5842 GB, free: 13.89 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.5701, allocations: 85.11 kB / 0.5843 GB, free: 13.79 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003896/0.5705, allocations: 365.7 kB / 0.5847 GB, free: 13.49 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.207e-05/0.5706, allocations: 36.77 kB / 0.5847 GB, free: 13.46 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/0.5708, allocations: 292.9 kB / 0.585 GB, free: 13.24 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.5709, allocations: 159.2 kB / 0.5851 GB, free: 13.11 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.243e-05/0.5709, allocations: 18.88 kB / 0.5851 GB, free: 13.1 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.5711, allocations: 364.7 kB / 0.5855 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002545/0.5713, allocations: 179.8 kB / 0.5857 GB, free: 12.64 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003315/0.5717, allocations: 293.1 kB / 0.5859 GB, free: 12.37 MB / 394.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.001821/0.5735, allocations: 0.7514 MB / 0.5867 GB, free: 11.74 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.5735, allocations: 4 kB / 0.5867 GB, free: 11.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001044/0.5746, allocations: 0.6854 MB / 0.5874 GB, free: 11.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.5746, allocations: 8 kB / 0.5874 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.5746, allocations: 4 kB / 0.5874 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003675/0.575, allocations: 131.9 kB / 0.5875 GB, free: 11.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004213/0.5754, allocations: 115.7 kB / 0.5876 GB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002543/0.578, allocations: 2.337 MB / 0.5899 GB, free: 8.871 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003056/0.5783, allocations: 31.08 kB / 0.5899 GB, free: 8.852 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.398e-05/0.5783, allocations: 19.56 kB / 0.5899 GB, free: 8.836 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * 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%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001412/0.5785, allocations: 144 kB / 0.5901 GB, free: 8.703 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.327e-05/0.5786, allocations: 51.42 kB / 0.5901 GB, free: 8.652 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00107/0.5796, allocations: 0.6336 MB / 0.5907 GB, free: 8.191 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.5797, allocations: 7.953 kB / 0.5907 GB, free: 8.184 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.5797, allocations: 4 kB / 0.5907 GB, free: 8.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.5797, allocations: 7.984 kB / 0.5908 GB, free: 8.172 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001945/0.5816, allocations: 1.344 MB / 0.5921 GB, free: 7.023 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.5817, allocations: 4 kB / 0.5921 GB, free: 7.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003433/0.582, allocations: 75.77 kB / 0.5921 GB, free: 6.949 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003544/0.5824, allocations: 135.7 kB / 0.5923 GB, free: 6.836 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.09e-05/0.5824, allocations: 11.91 kB / 0.5923 GB, free: 6.832 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002405/0.5848, allocations: 2.329 MB / 0.5946 GB, free: 4.738 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.5848, allocations: 3.984 kB / 0.5946 GB, free: 4.734 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/0.5862, allocations: 1.035 MB / 0.5956 GB, free: 3.863 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001344/0.5863, allocations: 124.5 kB / 0.5957 GB, free: 3.723 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.723e-05/0.5864, allocations: 10.69 kB / 0.5957 GB, free: 3.719 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002456/0.5867, allocations: 20.67 kB / 0.5957 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.25e-05/0.5867, allocations: 39.02 kB / 0.5958 GB, free: 3.672 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.141e-05/0.5868, allocations: 18.98 kB / 0.5958 GB, free: 3.656 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003073/0.5871, allocations: 281.3 kB / 0.596 GB, free: 3.438 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5871, allocations: 0 / 0.596 GB, free: 3.438 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005987/0.5877, allocations: 158.2 kB / 0.5962 GB, free: 3.301 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,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 (41): * Single equations (assignments): 39 * 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,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001775/0.5895, allocations: 1.999 MB / 0.5982 GB, free: 1.469 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.5905, allocations: 0.6345 MB / 0.5988 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5905, allocations: 0.9375 kB / 0.5988 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006112/0.5912, allocations: 424 kB / 0.5992 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005892/0.5918, allocations: 125.5 kB / 0.5993 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001997/0.5938, allocations: 1.172 MB / 0.6004 GB, free: 15.44 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005358/0.5943, allocations: 0.948 MB / 0.6014 GB, free: 14.48 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003458/0.5947, allocations: 104.7 kB / 0.6015 GB, free: 14.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002362/0.5949, allocations: 197.2 kB / 0.6017 GB, free: 14.32 MB / 410.7 MB Notification: Performance of SimCode: time 7.91e-07/0.5949, allocations: 0 / 0.6017 GB, free: 14.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2366/0.8315, allocations: 11.29 MB / 0.6127 GB, free: 3.07 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002417/0.8318, allocations: 185.7 kB / 0.6129 GB, free: 2.848 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.41/3.242, allocations: 64 / 0.6129 GB, free: 2.848 MB / 410.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