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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009876/0.0009876, allocations: 183 kB / 8.134 MB, free: 2.219 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.289/1.289, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008467/0.0008467, allocations: 83.45 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1791/0.1791, allocations: 37.97 MB / 347.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2255/0.4047, allocations: 62.44 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.5072, allocations: 56.31 MB / 466.4 MB, free: 6.383 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3739/0.8812, allocations: 100.3 MB / 0.5534 GB, free: 10.19 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003988/0.8817, allocations: 87.95 kB / 0.5535 GB, free: 10.11 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.04782/0.9295, allocations: 15.64 MB / 0.5688 GB, free: 10.26 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.9296, allocations: 16 kB / 0.5688 GB, free: 10.24 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002306/0.9298, allocations: 67.16 kB / 0.5689 GB, free: 10.18 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002952/0.9328, allocations: 1.07 MB / 0.5699 GB, free: 9.062 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.9328, allocations: 16 kB / 0.5699 GB, free: 9.047 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.888e-05/0.9329, allocations: 32 kB / 0.57 GB, free: 9.016 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008685/0.9338, allocations: 485.8 kB / 0.5704 GB, free: 8.543 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008676/0.9347, allocations: 0.5614 MB / 0.571 GB, free: 7.945 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.9347, allocations: 7.938 kB / 0.571 GB, free: 7.938 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.481e-05/0.9348, allocations: 0 / 0.571 GB, free: 7.938 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/0.9348, allocations: 16 kB / 0.571 GB, free: 7.922 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003351/0.9382, allocations: 2.147 MB / 0.5731 GB, free: 5.691 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004832/0.9387, allocations: 288.3 kB / 0.5734 GB, free: 5.395 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006473/0.9393, allocations: 334.7 kB / 0.5737 GB, free: 5.062 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.713e-05/0.9394, allocations: 7.984 kB / 0.5737 GB, free: 5.055 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.9394, allocations: 42.56 kB / 0.5737 GB, free: 5.004 MB / 410.7 MB Notification: Performance of pre-optimization done (n=45): time 2.896e-06/0.9394, allocations: 0 / 0.5737 GB, free: 5.004 MB / 410.7 MB Notification: Performance of matching and sorting (n=47): time 0.00247/0.9419, allocations: 1.255 MB / 0.575 GB, free: 3.695 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.857e-05/0.942, allocations: 93.14 kB / 0.5751 GB, free: 3.586 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005227/0.9425, allocations: 321 kB / 0.5754 GB, free: 3.266 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.9426, allocations: 29.64 kB / 0.5754 GB, free: 3.23 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.9428, allocations: 236.4 kB / 0.5756 GB, free: 2.996 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.943, allocations: 161.7 kB / 0.5758 GB, free: 2.836 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.221e-05/0.943, allocations: 0 / 0.5758 GB, free: 2.836 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000238/0.9432, allocations: 358.8 kB / 0.5761 GB, free: 2.477 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000308/0.9435, allocations: 173.2 kB / 0.5763 GB, free: 2.305 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003678/0.9439, allocations: 287.4 kB / 0.5766 GB, free: 1.98 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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002106/0.946, allocations: 0.7513 MB / 0.5773 GB, free: 1.211 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.9461, allocations: 0 / 0.5773 GB, free: 1.211 MB / 410.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001258/0.9473, allocations: 0.6437 MB / 0.5779 GB, free: 0.5586 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.9474, allocations: 4 kB / 0.5779 GB, free: 0.5547 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.9474, allocations: 11.92 kB / 0.5779 GB, free: 0.543 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004402/0.9478, allocations: 132.8 kB / 0.5781 GB, free: 420 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004904/0.9483, allocations: 107.7 kB / 0.5782 GB, free: 312 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002705/0.951, allocations: 2.179 MB / 0.5803 GB, free: 14.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000381/0.9515, allocations: 11.98 kB / 0.5803 GB, free: 14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.194e-05/0.9515, allocations: 20 kB / 0.5803 GB, free: 13.98 MB / 426.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: 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.0001967/0.9517, allocations: 128.6 kB / 0.5804 GB, free: 13.85 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.9519, allocations: 47.44 kB / 0.5805 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001261/0.9531, allocations: 0.5983 MB / 0.5811 GB, free: 13.19 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.9531, allocations: 11.98 kB / 0.5811 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.9532, allocations: 4 kB / 0.5811 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.9532, allocations: 0 / 0.5811 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002564/0.9557, allocations: 1.245 MB / 0.5823 GB, free: 11.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.9558, allocations: 0 / 0.5823 GB, free: 11.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004209/0.9562, allocations: 83.98 kB / 0.5824 GB, free: 11.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004774/0.9567, allocations: 136.8 kB / 0.5825 GB, free: 11.63 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.59e-05/0.9567, allocations: 7.906 kB / 0.5825 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002765/0.9595, allocations: 2.18 MB / 0.5847 GB, free: 9.332 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.9595, allocations: 4 kB / 0.5847 GB, free: 9.328 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001418/0.961, allocations: 1.007 MB / 0.5856 GB, free: 8.25 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001763/0.9627, allocations: 1.634 MB / 0.5872 GB, free: 6.535 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001609/0.9629, allocations: 124.5 kB / 0.5874 GB, free: 6.395 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.655e-05/0.963, allocations: 7.984 kB / 0.5874 GB, free: 6.387 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002714/0.9633, allocations: 4 kB / 0.5874 GB, free: 6.383 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.829e-05/0.9634, allocations: 39.64 kB / 0.5874 GB, free: 6.344 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.068e-05/0.9634, allocations: 12 kB / 0.5874 GB, free: 6.332 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002858/0.9637, allocations: 247.2 kB / 0.5877 GB, free: 6.098 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001221/0.9649, allocations: 127.9 kB / 0.5878 GB, free: 5.973 MB / 426.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.0002317/0.9652, allocations: 116.5 kB / 0.5879 GB, free: 5.848 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.9664, allocations: 0.5927 MB / 0.5885 GB, free: 5.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.9664, allocations: 0 / 0.5885 GB, free: 5.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006439/0.967, allocations: 377.3 kB / 0.5888 GB, free: 4.871 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006466/0.9677, allocations: 105.9 kB / 0.5889 GB, free: 4.762 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002177/0.9699, allocations: 1.007 MB / 0.5899 GB, free: 3.711 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006753/0.9706, allocations: 0.9757 MB / 0.5909 GB, free: 2.707 MB / 426.7 MB Notification: Performance of SimCode: time 3.11e-07/0.9706, allocations: 0 / 0.5909 GB, free: 2.707 MB / 426.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