Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001468/0.001469, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.077/2.077, allocations: 205.3 MB / 213.7 MB, free: 1.746 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001406/0.001406, allocations: 90.44 kB / 261.8 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2695/0.2695, allocations: 38 MB / 347.7 MB, free: 5.762 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.673e-05/1.662e-05, allocations: 0 / 409.8 MB, free: 35.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1092, allocations: 56.33 MB / 466.2 MB, free: 10.82 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.487/0.5962, allocations: 100.3 MB / 0.5532 GB, free: 9.371 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002914/0.5966, allocations: 92.66 kB / 0.5533 GB, free: 9.355 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06397/0.6606, allocations: 15.15 MB / 0.5681 GB, free: 14.37 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.6606, allocations: 0 / 0.5681 GB, free: 14.37 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.812e-05/0.6607, allocations: 15.98 kB / 0.5681 GB, free: 14.35 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.002242/0.663, allocations: 0.8043 MB / 0.5689 GB, free: 13.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.663, allocations: 11.97 kB / 0.5689 GB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002519/0.6633, allocations: 75.05 kB / 0.569 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004595/0.6679, allocations: 1.063 MB / 0.57 GB, free: 12.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.3e-05/0.668, allocations: 16 kB / 0.5701 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.6681, allocations: 28 kB / 0.5701 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001311/0.6695, allocations: 468.8 kB / 0.5705 GB, free: 12.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.6708, allocations: 0.5548 MB / 0.5711 GB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.6709, allocations: 7.922 kB / 0.5711 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.277e-05/0.6709, allocations: 0 / 0.5711 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.897e-05/0.671, allocations: 15.95 kB / 0.5711 GB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005188/0.6762, allocations: 2.145 MB / 0.5732 GB, free: 9.809 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.6774, allocations: 457.4 kB / 0.5736 GB, free: 9.484 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009855/0.6784, allocations: 327.1 kB / 0.5739 GB, free: 9.242 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.682e-05/0.6785, allocations: 4 kB / 0.5739 GB, free: 9.238 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.6785, allocations: 37.56 kB / 0.574 GB, free: 9.195 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 5.32e-06/0.6785, allocations: 0 / 0.574 GB, free: 9.195 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.003319/0.6819, allocations: 1.253 MB / 0.5752 GB, free: 8.113 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.682, allocations: 81.11 kB / 0.5753 GB, free: 8.016 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005578/0.6825, allocations: 331.5 kB / 0.5756 GB, free: 7.742 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.361e-05/0.6826, allocations: 25.7 kB / 0.5756 GB, free: 7.711 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002391/0.6829, allocations: 335.8 kB / 0.5759 GB, free: 7.445 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001938/0.6831, allocations: 158.7 kB / 0.5761 GB, free: 7.309 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.284e-05/0.6831, allocations: 0 / 0.5761 GB, free: 7.309 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.6833, allocations: 334 kB / 0.5764 GB, free: 6.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000413/0.6837, allocations: 171.4 kB / 0.5766 GB, free: 6.871 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004945/0.6842, allocations: 286.8 kB / 0.5768 GB, free: 6.605 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.003446/0.6877, allocations: 0.724 MB / 0.5775 GB, free: 6.008 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.6877, allocations: 4 kB / 0.5776 GB, free: 6.004 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001714/0.6894, allocations: 0.6009 MB / 0.5781 GB, free: 5.531 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.6895, allocations: 8 kB / 0.5781 GB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.01e-05/0.6895, allocations: 11.94 kB / 0.5782 GB, free: 5.512 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006539/0.6902, allocations: 129.7 kB / 0.5783 GB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009514/0.6911, allocations: 107.2 kB / 0.5784 GB, free: 5.305 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003962/0.6951, allocations: 2.257 MB / 0.5806 GB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005871/0.6958, allocations: 12.03 kB / 0.5806 GB, free: 3.273 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.839e-05/0.6958, allocations: 23.36 kB / 0.5806 GB, free: 3.254 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.0002045/0.696, allocations: 120.4 kB / 0.5807 GB, free: 3.133 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.6962, allocations: 59.3 kB / 0.5808 GB, free: 3.074 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001654/0.6979, allocations: 0.5797 MB / 0.5814 GB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.6979, allocations: 8 kB / 0.5814 GB, free: 2.633 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.6979, allocations: 0 / 0.5814 GB, free: 2.633 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.6979, allocations: 7.984 kB / 0.5814 GB, free: 2.625 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003203/0.7011, allocations: 1.246 MB / 0.5826 GB, free: 1.555 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.7012, allocations: 0 / 0.5826 GB, free: 1.555 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000693/0.7019, allocations: 71.89 kB / 0.5827 GB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006403/0.7026, allocations: 137.8 kB / 0.5828 GB, free: 1.371 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.115e-05/0.7026, allocations: 7.984 kB / 0.5828 GB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003767/0.7064, allocations: 2.243 MB / 0.585 GB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.658e-06/0.7065, allocations: 4 kB / 0.585 GB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/0.7086, allocations: 0.9886 MB / 0.586 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002195/0.7089, allocations: 123.5 kB / 0.5861 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.709, allocations: 8.031 kB / 0.5861 GB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004266/0.7095, allocations: 4 kB / 0.5861 GB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.7096, allocations: 47.52 kB / 0.5861 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.565e-05/0.7097, allocations: 13.56 kB / 0.5861 GB, free: 14.32 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003868/0.7101, allocations: 255.5 kB / 0.5864 GB, free: 14.12 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7101, allocations: 0 / 0.5864 GB, free: 14.12 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009775/0.7111, allocations: 132 kB / 0.5865 GB, free: 13.99 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.000251/0.7113, allocations: 107.2 kB / 0.5866 GB, free: 13.88 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.713, allocations: 0.6074 MB / 0.5872 GB, free: 13.39 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.713, allocations: 0 / 0.5872 GB, free: 13.39 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009549/0.714, allocations: 394.6 kB / 0.5876 GB, free: 13.07 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.715, allocations: 105.1 kB / 0.5877 GB, free: 12.99 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002688/0.7177, allocations: 1.043 MB / 0.5887 GB, free: 12.01 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007239/0.7185, allocations: 0.943 MB / 0.5896 GB, free: 11.06 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002534/0.7187, allocations: 47.42 kB / 0.5897 GB, free: 11.02 MB / 394.7 MB Notification: Performance of SimCode: time 1.292e-06/0.7188, allocations: 0 / 0.5897 GB, free: 11.02 MB / 394.7 MB Notification: Performance of Templates: time 0.02006/0.7388, allocations: 8.725 MB / 0.5982 GB, free: 2.367 MB / 394.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (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 & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)