Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_cpp_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.002233/0.002233, allocations: 185.7 kB / 8.01 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.161/2.161, allocations: 205.3 MB / 213.7 MB, free: 1.723 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001617/0.001617, allocations: 82.7 kB / 261.7 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.258/0.258, allocations: 37.99 MB / 347.7 MB, free: 5.766 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.719e-05/2.717e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1073, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4908/0.5982, allocations: 100.3 MB / 0.5533 GB, free: 9.102 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.5986, allocations: 88.61 kB / 0.5534 GB, free: 9.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06522/0.6638, allocations: 15.15 MB / 0.5682 GB, free: 14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6639, allocations: 4 kB / 0.5682 GB, free: 14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.321e-05/0.6639, allocations: 12 kB / 0.5682 GB, free: 13.99 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.002296/0.6663, allocations: 0.812 MB / 0.569 GB, free: 13.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.651e-05/0.6663, allocations: 12.03 kB / 0.569 GB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000291/0.6666, allocations: 71.11 kB / 0.5691 GB, free: 13.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004619/0.6713, allocations: 1.059 MB / 0.5701 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.659e-05/0.6714, allocations: 16 kB / 0.5701 GB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001965/0.6716, allocations: 28 kB / 0.5702 GB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00136/0.673, allocations: 474.4 kB / 0.5706 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.6743, allocations: 0.5549 MB / 0.5712 GB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.601e-05/0.6743, allocations: 3.938 kB / 0.5712 GB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.371e-05/0.6744, allocations: 4 kB / 0.5712 GB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.231e-05/0.6745, allocations: 19.94 kB / 0.5712 GB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00519/0.6797, allocations: 2.14 MB / 0.5733 GB, free: 9.441 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.6809, allocations: 448.3 kB / 0.5737 GB, free: 9.125 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009736/0.6819, allocations: 330.5 kB / 0.574 GB, free: 8.883 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.478e-05/0.682, allocations: 12 kB / 0.574 GB, free: 8.871 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.682, allocations: 34 kB / 0.5741 GB, free: 8.832 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 3.467e-06/0.682, allocations: 0 / 0.5741 GB, free: 8.832 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.003434/0.6855, allocations: 1.253 MB / 0.5753 GB, free: 7.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.586e-05/0.6856, allocations: 85.11 kB / 0.5754 GB, free: 7.648 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005739/0.6862, allocations: 332.8 kB / 0.5757 GB, free: 7.375 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.252e-05/0.6862, allocations: 25.7 kB / 0.5757 GB, free: 7.344 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002444/0.6865, allocations: 331.6 kB / 0.576 GB, free: 7.082 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.6867, allocations: 157.7 kB / 0.5762 GB, free: 6.945 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.18e-05/0.6868, allocations: 0 / 0.5762 GB, free: 6.945 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.6869, allocations: 333.1 kB / 0.5765 GB, free: 6.621 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000408/0.6873, allocations: 174.1 kB / 0.5767 GB, free: 6.508 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000556/0.6879, allocations: 287.5 kB / 0.5769 GB, free: 6.242 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.003369/0.6913, allocations: 0.7268 MB / 0.5776 GB, free: 5.641 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.6913, allocations: 0 / 0.5776 GB, free: 5.641 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001745/0.6931, allocations: 0.6016 MB / 0.5782 GB, free: 5.168 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.6932, allocations: 8.062 kB / 0.5782 GB, free: 5.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.6932, allocations: 7.953 kB / 0.5782 GB, free: 5.152 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006221/0.6938, allocations: 134.3 kB / 0.5784 GB, free: 5.043 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009049/0.6948, allocations: 107.8 kB / 0.5785 GB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004062/0.6988, allocations: 2.262 MB / 0.5807 GB, free: 2.918 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006122/0.6995, allocations: 11.98 kB / 0.5807 GB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.6996, allocations: 19.62 kB / 0.5807 GB, free: 2.891 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.0002115/0.6999, allocations: 116.8 kB / 0.5808 GB, free: 2.77 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001514/0.7014, allocations: 0.5464 MB / 0.5814 GB, free: 2.332 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.7015, allocations: 43.44 kB / 0.5814 GB, free: 2.289 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001657/0.7032, allocations: 0.585 MB / 0.582 GB, free: 1.852 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.584e-05/0.7032, allocations: 8.109 kB / 0.582 GB, free: 1.844 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.7033, allocations: 7.938 kB / 0.582 GB, free: 1.836 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.7033, allocations: 11.95 kB / 0.582 GB, free: 1.824 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003271/0.7066, allocations: 1.241 MB / 0.5832 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.7066, allocations: 0 / 0.5832 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006811/0.7073, allocations: 75.2 kB / 0.5833 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006855/0.708, allocations: 126.1 kB / 0.5834 GB, free: 0.582 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.192e-05/0.7081, allocations: 15.58 kB / 0.5834 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003899/0.712, allocations: 2.25 MB / 0.5856 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.421e-05/0.7121, allocations: 4 kB / 0.5856 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00219/0.7143, allocations: 0.981 MB / 0.5866 GB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002231/0.7145, allocations: 127.1 kB / 0.5867 GB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.546e-05/0.7146, allocations: 4 kB / 0.5867 GB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004248/0.7151, allocations: 8.031 kB / 0.5867 GB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.7152, allocations: 35.77 kB / 0.5867 GB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.042e-05/0.7153, allocations: 19.47 kB / 0.5868 GB, free: 13.52 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004626/0.7157, allocations: 256 kB / 0.587 GB, free: 13.32 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7158, allocations: 0 / 0.587 GB, free: 13.32 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001033/0.7168, allocations: 128 kB / 0.5871 GB, free: 13.2 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.002806/0.7196, allocations: 1.958 MB / 0.589 GB, free: 11.39 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001641/0.7213, allocations: 0.5925 MB / 0.5896 GB, free: 10.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.7214, allocations: 0 / 0.5896 GB, free: 10.93 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009834/0.7224, allocations: 406.5 kB / 0.59 GB, free: 10.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.7234, allocations: 105.8 kB / 0.5901 GB, free: 10.51 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003365/0.7268, allocations: 1.168 MB / 0.5912 GB, free: 9.406 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008129/0.7276, allocations: 0.9498 MB / 0.5922 GB, free: 8.445 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004247/0.7281, allocations: 198.6 kB / 0.5924 GB, free: 8.391 MB / 394.7 MB Notification: Performance of SimCode: time 3.486e-06/0.7281, allocations: 0 / 0.5924 GB, free: 8.391 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.012/3.74, allocations: 11.45 MB / 0.6035 GB, free: 13.04 MB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)