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.001225/0.001225, 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.6/1.6, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.0008194/0.0008195, allocations: 84.14 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1736/0.1736, allocations: 37.98 MB / 348 MB, free: 7.758 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.559e-05/1.561e-05, allocations: 0 / 410.7 MB, free: 46.84 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 56.32 MB / 467 MB, free: 6.461 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4004/0.5103, allocations: 100.3 MB / 0.554 GB, free: 10.52 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/0.5107, allocations: 91.94 kB / 0.5541 GB, free: 10.43 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04337/0.5541, allocations: 15.16 MB / 0.5689 GB, free: 11.11 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5541, allocations: 0 / 0.5689 GB, free: 11.11 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.627e-05/0.5542, allocations: 16 kB / 0.5689 GB, free: 11.1 MB / 411.1 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.001417/0.5556, allocations: 0.8018 MB / 0.5697 GB, free: 10.25 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.5556, allocations: 8.031 kB / 0.5697 GB, free: 10.24 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.5558, allocations: 75.09 kB / 0.5698 GB, free: 10.16 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002556/0.5584, allocations: 1.058 MB / 0.5708 GB, free: 9.066 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/0.5584, allocations: 16 kB / 0.5708 GB, free: 9.051 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.719e-05/0.5585, allocations: 32 kB / 0.5709 GB, free: 9.02 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007654/0.5593, allocations: 474.3 kB / 0.5713 GB, free: 8.555 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008227/0.5601, allocations: 0.5576 MB / 0.5719 GB, free: 7.965 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.5601, allocations: 0 / 0.5719 GB, free: 7.965 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.088e-05/0.5602, allocations: 0 / 0.5719 GB, free: 7.965 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.5602, allocations: 15.95 kB / 0.5719 GB, free: 7.949 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002899/0.5631, allocations: 2.14 MB / 0.574 GB, free: 5.727 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007295/0.5638, allocations: 461.2 kB / 0.5744 GB, free: 5.258 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005815/0.5644, allocations: 325.6 kB / 0.5747 GB, free: 4.934 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.5645, allocations: 4 kB / 0.5747 GB, free: 4.93 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.5645, allocations: 42.5 kB / 0.5748 GB, free: 4.879 MB / 411.1 MB Notification: Performance of pre-optimization done (n=45): time 4.638e-06/0.5645, allocations: 3.984 kB / 0.5748 GB, free: 4.875 MB / 411.1 MB Notification: Performance of matching and sorting (n=47): time 0.002064/0.5666, allocations: 1.249 MB / 0.576 GB, free: 3.57 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.5667, allocations: 81.11 kB / 0.5761 GB, free: 3.473 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003414/0.567, allocations: 337 kB / 0.5764 GB, free: 3.137 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/0.567, allocations: 25.7 kB / 0.5764 GB, free: 3.105 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.5672, allocations: 292.4 kB / 0.5767 GB, free: 2.816 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.5674, allocations: 157.7 kB / 0.5768 GB, free: 2.66 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.177e-05/0.5674, allocations: 4.031 kB / 0.5769 GB, free: 2.656 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.5675, allocations: 362.7 kB / 0.5772 GB, free: 2.293 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/0.5678, allocations: 169.1 kB / 0.5774 GB, free: 2.129 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000318/0.5681, allocations: 278.6 kB / 0.5776 GB, free: 1.805 MB / 411.1 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.001817/0.5699, allocations: 0.7274 MB / 0.5783 GB, free: 1.059 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.5699, allocations: 4 kB / 0.5783 GB, free: 1.055 MB / 411.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001014/0.571, allocations: 0.6289 MB / 0.579 GB, free: 428 kB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.571, allocations: 11.94 kB / 0.579 GB, free: 416 kB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.571, allocations: 7.953 kB / 0.579 GB, free: 408 kB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003552/0.5714, allocations: 128.8 kB / 0.5791 GB, free: 276 kB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004229/0.5718, allocations: 111.8 kB / 0.5792 GB, free: 164 kB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002491/0.5743, allocations: 2.253 MB / 0.5814 GB, free: 13.79 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002854/0.5746, allocations: 11.98 kB / 0.5814 GB, free: 13.78 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.639e-05/0.5747, allocations: 20 kB / 0.5814 GB, free: 13.76 MB / 427.1 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.0001415/0.5748, allocations: 130.5 kB / 0.5816 GB, free: 13.62 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008662/0.5757, allocations: 0.5325 MB / 0.5821 GB, free: 13.08 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.219e-05/0.5758, allocations: 47.44 kB / 0.5821 GB, free: 13.04 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001011/0.5768, allocations: 0.5956 MB / 0.5827 GB, free: 12.43 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.5768, allocations: 4.109 kB / 0.5827 GB, free: 12.43 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.5768, allocations: 7.938 kB / 0.5827 GB, free: 12.42 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.066e-06/0.5768, allocations: 3.984 kB / 0.5827 GB, free: 12.41 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/0.5788, allocations: 1.233 MB / 0.5839 GB, free: 11.11 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.5788, allocations: 0 / 0.5839 GB, free: 11.11 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003374/0.5791, allocations: 75.89 kB / 0.584 GB, free: 11.03 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003516/0.5795, allocations: 136.9 kB / 0.5841 GB, free: 10.89 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.052e-05/0.5796, allocations: 7.984 kB / 0.5841 GB, free: 10.89 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00238/0.5819, allocations: 2.247 MB / 0.5863 GB, free: 8.523 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.582, allocations: 4.094 kB / 0.5863 GB, free: 8.52 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.5833, allocations: 0.9833 MB / 0.5873 GB, free: 7.465 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001315/0.5835, allocations: 128.4 kB / 0.5874 GB, free: 7.32 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.876e-05/0.5835, allocations: 4 kB / 0.5874 GB, free: 7.316 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.5838, allocations: 16.03 kB / 0.5874 GB, free: 7.301 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.987e-05/0.5838, allocations: 39.94 kB / 0.5875 GB, free: 7.262 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.788e-05/0.5839, allocations: 16.11 kB / 0.5875 GB, free: 7.246 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002822/0.5842, allocations: 250.9 kB / 0.5877 GB, free: 7.004 MB / 427.1 MB Notification: Performance of sort global known variables: time 2.134e-06/0.5842, allocations: 0 / 0.5877 GB, free: 7.004 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0006768/0.5849, allocations: 131.9 kB / 0.5879 GB, free: 6.875 MB / 427.1 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.001898/0.5868, allocations: 1.964 MB / 0.5898 GB, free: 4.84 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.5879, allocations: 0.5889 MB / 0.5903 GB, free: 4.242 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5879, allocations: 0 / 0.5903 GB, free: 4.242 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005953/0.5885, allocations: 401.9 kB / 0.5907 GB, free: 3.84 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006082/0.5891, allocations: 106 kB / 0.5908 GB, free: 3.73 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002088/0.5912, allocations: 1.111 MB / 0.5919 GB, free: 2.555 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005728/0.5918, allocations: 0.9525 MB / 0.5928 GB, free: 1.574 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0003496/0.5922, allocations: 104.6 kB / 0.5929 GB, free: 1.473 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002724/0.5925, allocations: 195.4 kB / 0.5931 GB, free: 1.281 MB / 427.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5925, allocations: 3.938 kB / 0.5931 GB, free: 1.277 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03244/0.6249, allocations: 10.2 MB / 0.6031 GB, free: 7.086 MB / 443.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001899/0.6252, allocations: 152.7 kB / 0.6032 GB, free: 6.895 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.371/2.996, allocations: 0 / 0.6032 GB, free: 6.895 MB / 443.1 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