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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009735/0.0009735, allocations: 178.9 kB / 16.38 MB, free: 5.766 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.167/1.167, allocations: 194.5 MB / 211.6 MB, free: 3.043 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.001599/0.0016, allocations: 113.4 kB / 256.9 MB, free: 4.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1605/0.1605, allocations: 37.99 MB / 340.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003335/0.0003335, allocations: 8 kB / 403.8 MB, free: 68.8 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08067/0.08102, allocations: 53.23 MB / 457 MB, free: 15.55 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2751/0.3562, allocations: 96 MB / 0.5401 GB, free: 15.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002208/0.3564, allocations: 99.69 kB / 0.5402 GB, free: 15.31 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04069/0.3971, allocations: 15.28 MB / 0.5551 GB, free: 2.191 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3972, allocations: 224 / 0.5551 GB, free: 2.191 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.11e-05/0.3972, allocations: 15.94 kB / 0.5551 GB, free: 2.176 MB / 362.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.001436/0.3987, allocations: 0.8899 MB / 0.556 GB, free: 1.277 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.3987, allocations: 12.02 kB / 0.556 GB, free: 1.266 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.3988, allocations: 63.25 kB / 0.556 GB, free: 1.203 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002396/0.4012, allocations: 1.071 MB / 0.5571 GB, free: 264 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.976e-05/0.4013, allocations: 43.06 kB / 0.5571 GB, free: 240 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.483e-05/0.4014, allocations: 47.12 kB / 0.5572 GB, free: 208 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008497/0.4022, allocations: 0.6355 MB / 0.5578 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.4022, allocations: 3.938 kB / 0.5578 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.488e-05/0.4023, allocations: 17.94 kB / 0.5578 GB, free: 15.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.4023, allocations: 16 kB / 0.5578 GB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007069/0.403, allocations: 0.5082 MB / 0.5583 GB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003044/0.4061, allocations: 2.243 MB / 0.5605 GB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007726/0.4069, allocations: 476.3 kB / 0.561 GB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.074e-05/0.4069, allocations: 4.062 kB / 0.561 GB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.4069, allocations: 46 kB / 0.561 GB, free: 12.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.295e-06/0.4069, allocations: 0 / 0.561 GB, free: 12.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.002872/0.4098, allocations: 1.704 MB / 0.5627 GB, free: 11.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.4099, allocations: 81.11 kB / 0.5627 GB, free: 11.44 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003782/0.4103, allocations: 365.5 kB / 0.5631 GB, free: 11.15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.4103, allocations: 36.7 kB / 0.5631 GB, free: 11.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.4105, allocations: 294.8 kB / 0.5634 GB, free: 10.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.4106, allocations: 168.2 kB / 0.5636 GB, free: 10.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.037e-05/0.4106, allocations: 7.188 kB / 0.5636 GB, free: 10.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.4108, allocations: 365.1 kB / 0.5639 GB, free: 10.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002508/0.411, allocations: 179 kB / 0.5641 GB, free: 10.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003309/0.4114, allocations: 299.5 kB / 0.5644 GB, free: 10.02 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.001787/0.4131, allocations: 0.7485 MB / 0.5651 GB, free: 9.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4132, allocations: 0 / 0.5651 GB, free: 9.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0009826/0.4141, allocations: 0.6875 MB / 0.5658 GB, free: 8.883 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.4142, allocations: 4 kB / 0.5658 GB, free: 8.879 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.4142, allocations: 7.984 kB / 0.5658 GB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003379/0.4145, allocations: 126.9 kB / 0.5659 GB, free: 8.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.415, allocations: 111.1 kB / 0.566 GB, free: 8.664 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002385/0.4174, allocations: 2.311 MB / 0.5683 GB, free: 6.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002958/0.4177, allocations: 22.16 kB / 0.5683 GB, free: 6.559 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.538e-05/0.4177, allocations: 19.75 kB / 0.5683 GB, free: 6.543 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * 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%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003137/0.418, allocations: 227 kB / 0.5685 GB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.768e-05/0.4181, allocations: 55.42 kB / 0.5686 GB, free: 6.297 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009731/0.4191, allocations: 0.6342 MB / 0.5692 GB, free: 5.844 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.4191, allocations: 4 kB / 0.5692 GB, free: 5.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.4191, allocations: 4.375 kB / 0.5692 GB, free: 5.836 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.4191, allocations: 0 / 0.5692 GB, free: 5.836 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001885/0.421, allocations: 1.343 MB / 0.5705 GB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.4211, allocations: 8.125 kB / 0.5705 GB, free: 4.703 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003573/0.4214, allocations: 83.78 kB / 0.5706 GB, free: 4.621 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000337/0.4218, allocations: 133.4 kB / 0.5707 GB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.235e-05/0.4218, allocations: 15.73 kB / 0.5708 GB, free: 4.504 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002243/0.4241, allocations: 2.307 MB / 0.573 GB, free: 2.422 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.4241, allocations: 4.125 kB / 0.573 GB, free: 2.418 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.4253, allocations: 1.03 MB / 0.574 GB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.4254, allocations: 127.8 kB / 0.5741 GB, free: 1.434 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.491e-05/0.4255, allocations: 10.75 kB / 0.5742 GB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/0.4257, allocations: 18.66 kB / 0.5742 GB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.637e-05/0.4258, allocations: 35.75 kB / 0.5742 GB, free: 1.387 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.01e-05/0.4258, allocations: 19.33 kB / 0.5742 GB, free: 1.371 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002749/0.4261, allocations: 285.1 kB / 0.5745 GB, free: 1.145 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.262e-06/0.4261, allocations: 112 / 0.5745 GB, free: 1.145 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005972/0.4267, allocations: 160.1 kB / 0.5746 GB, free: 1.004 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * 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,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001759/0.4269, allocations: 126.5 kB / 0.5748 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009386/0.4279, allocations: 0.6452 MB / 0.5754 GB, free: 368 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4279, allocations: 3.812 kB / 0.5754 GB, free: 368 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005496/0.4285, allocations: 433.7 kB / 0.5758 GB, free: 4 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005522/0.429, allocations: 110.8 kB / 0.5759 GB, free: 15.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001948/0.431, allocations: 1.581 MB / 0.5775 GB, free: 14.43 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000484/0.4315, allocations: 0.9459 MB / 0.5784 GB, free: 13.47 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003288/0.4318, allocations: 100.7 kB / 0.5785 GB, free: 13.37 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.4319, allocations: 43.42 kB / 0.5785 GB, free: 13.32 MB / 394.7 MB Notification: Performance of SimCode: time 5.2e-07/0.4319, allocations: 0 / 0.5785 GB, free: 13.32 MB / 394.7 MB Notification: Performance of Templates: time 0.0109/0.4428, allocations: 6.174 MB / 0.5846 GB, free: 7.16 MB / 394.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (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 & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)