Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.7 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.9/1.9, allocations: 194.3 MB / 208.4 MB, free: 6.699 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.001791/0.001791, allocations: 122.3 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2209/0.2209, allocations: 37.91 MB / 336.4 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.91e-05/3.916e-05, allocations: 4 kB / 397.6 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2959, allocations: 53.22 MB / 450.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4933/0.7892, allocations: 106 MB / 0.5438 GB, free: 29.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002939/0.7896, allocations: 95.22 kB / 0.5439 GB, free: 29.06 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06334/0.8529, allocations: 21.82 MB / 0.5652 GB, free: 25.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.187e-06/0.853, allocations: 4 kB / 0.5652 GB, free: 25.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001054/0.8531, allocations: 23.25 kB / 0.5653 GB, free: 25.64 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.003675/0.8568, allocations: 0.9494 MB / 0.5662 GB, free: 24.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.949e-05/0.8569, allocations: 7.812 kB / 0.5662 GB, free: 24.96 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005647/0.8575, allocations: 124.2 kB / 0.5663 GB, free: 24.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.8587, allocations: 124.3 kB / 0.5664 GB, free: 24.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004071/0.8628, allocations: 1.141 MB / 0.5675 GB, free: 24.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.8629, allocations: 57.45 kB / 0.5676 GB, free: 24.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003658/0.8633, allocations: 61.28 kB / 0.5677 GB, free: 24.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002594/0.8659, allocations: 0.9843 MB / 0.5686 GB, free: 23.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.709e-05/0.866, allocations: 0 / 0.5686 GB, free: 23.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/0.8661, allocations: 30.08 kB / 0.5686 GB, free: 23.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000252/0.8664, allocations: 63.7 kB / 0.5687 GB, free: 23.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002231/0.8686, allocations: 0.9223 MB / 0.5696 GB, free: 23.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006202/0.8748, allocations: 3.214 MB / 0.5727 GB, free: 22.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.876, allocations: 0.6951 MB / 0.5734 GB, free: 21.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006041/0.8766, allocations: 446.7 kB / 0.5739 GB, free: 21.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.336e-05/0.8767, allocations: 12.33 kB / 0.5739 GB, free: 21.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.8768, allocations: 42.25 kB / 0.5739 GB, free: 21.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=77): time 3.817e-06/0.8768, allocations: 0 / 0.5739 GB, free: 21.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=79): time 0.003579/0.8804, allocations: 2.087 MB / 0.5759 GB, free: 21.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.895e-05/0.8805, allocations: 89.36 kB / 0.576 GB, free: 20.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004927/0.881, allocations: 369 kB / 0.5764 GB, free: 20.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.504e-05/0.881, allocations: 40.02 kB / 0.5764 GB, free: 20.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.8812, allocations: 352.2 kB / 0.5768 GB, free: 20.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000237/0.8815, allocations: 274.2 kB / 0.577 GB, free: 20.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.881e-05/0.8815, allocations: 22.5 kB / 0.577 GB, free: 20.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.8817, allocations: 371 kB / 0.5774 GB, free: 20.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004786/0.8822, allocations: 348.8 kB / 0.5777 GB, free: 19.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005643/0.8827, allocations: 0.5057 MB / 0.5782 GB, free: 19.76 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.009388/0.8921, allocations: 2.758 MB / 0.5809 GB, free: 18.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-05/0.8922, allocations: 0 / 0.5809 GB, free: 18.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002752/0.895, allocations: 1.091 MB / 0.582 GB, free: 18.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.16e-05/0.895, allocations: 12.42 kB / 0.582 GB, free: 18.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.7e-05/0.8951, allocations: 7.844 kB / 0.582 GB, free: 18.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002524/0.8953, allocations: 39.25 kB / 0.582 GB, free: 18.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009352/0.8963, allocations: 202.4 kB / 0.5822 GB, free: 18.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001526/0.8978, allocations: 1.385 MB / 0.5836 GB, free: 16.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008388/0.8987, allocations: 42.23 kB / 0.5836 GB, free: 16.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001657/0.8989, allocations: 34.88 kB / 0.5837 GB, free: 16.91 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (93): * Single equations (assignments): 89 * Array equations: 3 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002827/0.8992, allocations: 150 kB / 0.5838 GB, free: 16.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.8994, allocations: 62.22 kB / 0.5839 GB, free: 16.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001842/0.9012, allocations: 1.012 MB / 0.5848 GB, free: 16.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.31e-05/0.9013, allocations: 31.22 kB / 0.5849 GB, free: 16.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.9013, allocations: 0 / 0.5849 GB, free: 16.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.9013, allocations: 3.984 kB / 0.5849 GB, free: 16.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003772/0.9051, allocations: 2.067 MB / 0.5869 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.636e-05/0.9052, allocations: 11.78 kB / 0.5869 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007012/0.9059, allocations: 167.4 kB / 0.5871 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001363/0.906, allocations: 39.41 kB / 0.5871 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.101e-05/0.9061, allocations: 19.23 kB / 0.5871 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009545/0.9071, allocations: 1.392 MB / 0.5885 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.9071, allocations: 3.75 kB / 0.5885 GB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/0.9093, allocations: 1.815 MB / 0.5903 GB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002813/0.9096, allocations: 143.2 kB / 0.5904 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.9098, allocations: 22.83 kB / 0.5904 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004485/0.9102, allocations: 34.5 kB / 0.5904 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.9104, allocations: 66.12 kB / 0.5905 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.117e-05/0.9104, allocations: 25.94 kB / 0.5905 GB, free: 13.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004748/0.9109, allocations: 284.6 kB / 0.5908 GB, free: 12.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9109, allocations: 0 / 0.5908 GB, free: 12.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001163/0.9121, allocations: 208.9 kB / 0.591 GB, free: 12.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],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 (76): * Single equations (assignments): 71 * Array equations: 3 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003317/0.9154, allocations: 3.715 MB / 0.5946 GB, free: 10.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.9171, allocations: 0.9744 MB / 0.5956 GB, free: 9.914 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.9171, allocations: 0 / 0.5956 GB, free: 9.914 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007117/0.9178, allocations: 0.5409 MB / 0.5961 GB, free: 9.742 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.9189, allocations: 126.8 kB / 0.5962 GB, free: 9.707 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004064/0.923, allocations: 1.908 MB / 0.5981 GB, free: 8.695 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006829/0.9237, allocations: 1.031 MB / 0.5991 GB, free: 7.867 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007141/0.9244, allocations: 207 kB / 0.5993 GB, free: 7.777 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004554/0.9249, allocations: 268.3 kB / 0.5996 GB, free: 7.746 MB / 378.7 MB Notification: Performance of SimCode: time 1.813e-06/0.9249, allocations: 0 / 0.5996 GB, free: 7.746 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03601/0.9609, allocations: 14.01 MB / 0.6132 GB, free: 12.25 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000201/0.9611, allocations: 175.5 kB / 0.6134 GB, free: 12.03 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.66/3.621, allocations: 0 / 0.6134 GB, free: 12.03 MB / 394.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)