Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001267/0.001267, allocations: 182.6 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.989/1.989, allocations: 194.3 MB / 208.4 MB, free: 6.715 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001876/0.001876, allocations: 120.7 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1906/0.1906, allocations: 37.9 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.523e-05/4.554e-05, allocations: 4 kB / 397.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.307, allocations: 53.22 MB / 450.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4222/0.7292, allocations: 95.91 MB / 0.534 GB, free: 88.35 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003303/0.7296, allocations: 100.5 kB / 0.5341 GB, free: 88.35 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04391/0.7736, allocations: 15.27 MB / 0.549 GB, free: 80.13 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.7736, allocations: 0 / 0.549 GB, free: 80.13 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.993e-05/0.7736, allocations: 12 kB / 0.549 GB, free: 80.12 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.001325/0.775, allocations: 0.8134 MB / 0.5498 GB, free: 79.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.775, allocations: 12.03 kB / 0.5498 GB, free: 79.25 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/0.7751, allocations: 90.52 kB / 0.5499 GB, free: 79.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.7753, allocations: 67.16 kB / 0.5499 GB, free: 79.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002301/0.7776, allocations: 1.058 MB / 0.551 GB, free: 77.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.561e-05/0.7776, allocations: 37.69 kB / 0.551 GB, free: 77.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.105e-05/0.7777, allocations: 51.91 kB / 0.5511 GB, free: 77.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008415/0.7786, allocations: 0.618 MB / 0.5517 GB, free: 77.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.7786, allocations: 3.984 kB / 0.5517 GB, free: 77.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.814e-05/0.7786, allocations: 20 kB / 0.5517 GB, free: 77.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.7787, allocations: 16 kB / 0.5517 GB, free: 77.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006489/0.7793, allocations: 0.4958 MB / 0.5522 GB, free: 76.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002428/0.7818, allocations: 2.245 MB / 0.5544 GB, free: 74.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006628/0.7824, allocations: 473.3 kB / 0.5548 GB, free: 73.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005338/0.783, allocations: 337.6 kB / 0.5551 GB, free: 73.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.459e-05/0.783, allocations: 4.719 kB / 0.5552 GB, free: 73.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.7831, allocations: 38.56 kB / 0.5552 GB, free: 73.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.735e-06/0.7831, allocations: 4 kB / 0.5552 GB, free: 73.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.001936/0.785, allocations: 1.342 MB / 0.5565 GB, free: 72.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.7851, allocations: 81.11 kB / 0.5566 GB, free: 72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003225/0.7854, allocations: 363.2 kB / 0.5569 GB, free: 71.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.998e-05/0.7854, allocations: 33.7 kB / 0.557 GB, free: 71.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.7856, allocations: 300.4 kB / 0.5572 GB, free: 71.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.542e-05/0.7856, allocations: 169.5 kB / 0.5574 GB, free: 71.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.122e-05/0.7857, allocations: 8 kB / 0.5574 GB, free: 71.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.412e-05/0.7858, allocations: 362.8 kB / 0.5578 GB, free: 70.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000231/0.786, allocations: 177.1 kB / 0.5579 GB, free: 70.58 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.7863, allocations: 303.7 kB / 0.5582 GB, free: 70.23 MB / 378.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.001756/0.788, allocations: 0.7497 MB / 0.559 GB, free: 69.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.7881, allocations: 3.938 kB / 0.559 GB, free: 69.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0009275/0.789, allocations: 0.6837 MB / 0.5596 GB, free: 68.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.789, allocations: 12.03 kB / 0.5596 GB, free: 68.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.026e-06/0.789, allocations: 4 kB / 0.5596 GB, free: 68.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000343/0.7894, allocations: 128.8 kB / 0.5598 GB, free: 68.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004065/0.7898, allocations: 111.8 kB / 0.5599 GB, free: 68.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002167/0.792, allocations: 2.343 MB / 0.5622 GB, free: 66.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003361/0.7923, allocations: 27.88 kB / 0.5622 GB, free: 66.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.7924, allocations: 20 kB / 0.5622 GB, free: 65.99 MB / 378.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.0001322/0.7925, allocations: 144.6 kB / 0.5623 GB, free: 65.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.987e-05/0.7926, allocations: 47.44 kB / 0.5624 GB, free: 65.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009901/0.7936, allocations: 0.6461 MB / 0.563 GB, free: 65.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.7936, allocations: 4 kB / 0.563 GB, free: 65.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.7936, allocations: 4 kB / 0.563 GB, free: 65.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.7936, allocations: 3.984 kB / 0.563 GB, free: 65.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001811/0.7954, allocations: 1.334 MB / 0.5643 GB, free: 63.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.7955, allocations: 4.156 kB / 0.5643 GB, free: 63.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003236/0.7958, allocations: 79.83 kB / 0.5644 GB, free: 63.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003407/0.7961, allocations: 132.8 kB / 0.5645 GB, free: 63.49 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.23e-05/0.7962, allocations: 15.98 kB / 0.5646 GB, free: 63.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002023/0.7982, allocations: 2.338 MB / 0.5668 GB, free: 61.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.7982, allocations: 0 / 0.5668 GB, free: 61.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.7995, allocations: 1.039 MB / 0.5678 GB, free: 59.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.7996, allocations: 120.5 kB / 0.568 GB, free: 59.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.696e-05/0.7997, allocations: 12 kB / 0.568 GB, free: 59.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.7999, allocations: 20.03 kB / 0.568 GB, free: 59.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.553e-05/0.8, allocations: 39.69 kB / 0.568 GB, free: 59.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.142e-05/0.8001, allocations: 19.95 kB / 0.5681 GB, free: 59.67 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002851/0.8003, allocations: 277.2 kB / 0.5683 GB, free: 59.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8004, allocations: 0 / 0.5683 GB, free: 59.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006225/0.801, allocations: 160.1 kB / 0.5685 GB, free: 59.24 MB / 378.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.001494/0.8025, allocations: 2.011 MB / 0.5704 GB, free: 57.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.8036, allocations: 0.637 MB / 0.5711 GB, free: 56.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.8036, allocations: 0 / 0.5711 GB, free: 56.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005561/0.8042, allocations: 418.8 kB / 0.5715 GB, free: 56.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000671/0.8049, allocations: 114.1 kB / 0.5716 GB, free: 55.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002091/0.807, allocations: 1.168 MB / 0.5727 GB, free: 54.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/0.8074, allocations: 0.9413 MB / 0.5736 GB, free: 53.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003285/0.8077, allocations: 100.7 kB / 0.5737 GB, free: 53.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002174/0.8079, allocations: 207.3 kB / 0.5739 GB, free: 53.47 MB / 378.7 MB Notification: Performance of SimCode: time 8.31e-07/0.8079, allocations: 0 / 0.5739 GB, free: 53.47 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02441/0.8324, allocations: 11.28 MB / 0.5849 GB, free: 42.19 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001413/0.8325, allocations: 177.1 kB / 0.5851 GB, free: 41.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.388/3.221, allocations: 0 / 0.5851 GB, free: 41.96 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)