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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001665/0.001665, allocations: 193.8 kB / 7.808 MB, free: 2.492 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 1.77/1.77, allocations: 205.2 MB / 213.4 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001233/0.001233, allocations: 95.88 kB / 261.4 MB, free: 13.63 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.2665/0.2665, allocations: 37.97 MB / 347.3 MB, free: 7.562 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.618e-06/9.648e-06, allocations: 0 / 409.3 MB, free: 47.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.099/0.09904, allocations: 56.32 MB / 465.6 MB, free: 6.871 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3694/0.4686, allocations: 100.3 MB / 0.5527 GB, free: 10.61 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003407/0.469, allocations: 91.94 kB / 0.5528 GB, free: 10.52 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.07264/0.5416, allocations: 14.82 MB / 0.5672 GB, free: 11.53 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.194e-05/0.5417, allocations: 12 kB / 0.5673 GB, free: 11.52 MB / 410.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.002373/0.5441, allocations: 0.7978 MB / 0.568 GB, free: 10.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.5442, allocations: 16.02 kB / 0.568 GB, free: 10.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002915/0.5445, allocations: 67.16 kB / 0.5681 GB, free: 10.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004871/0.5494, allocations: 1.066 MB / 0.5692 GB, free: 9.484 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.059e-05/0.5494, allocations: 16 kB / 0.5692 GB, free: 9.469 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.5496, allocations: 28 kB / 0.5692 GB, free: 9.441 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001596/0.5512, allocations: 485.8 kB / 0.5697 GB, free: 8.969 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/0.5528, allocations: 0.5692 MB / 0.5702 GB, free: 8.363 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.479e-05/0.5528, allocations: 0 / 0.5702 GB, free: 8.363 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.775e-05/0.5529, allocations: 4.844 kB / 0.5702 GB, free: 8.359 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.173e-05/0.5529, allocations: 12 kB / 0.5702 GB, free: 8.348 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005524/0.5585, allocations: 2.147 MB / 0.5723 GB, free: 6.117 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007902/0.5593, allocations: 296.3 kB / 0.5726 GB, free: 5.812 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001144/0.5605, allocations: 330.7 kB / 0.5729 GB, free: 5.484 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.426e-05/0.5605, allocations: 8 kB / 0.5729 GB, free: 5.477 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.989e-05/0.5606, allocations: 38.56 kB / 0.573 GB, free: 5.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=45): time 6.182e-06/0.5606, allocations: 0 / 0.573 GB, free: 5.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=47): time 0.003792/0.5644, allocations: 1.269 MB / 0.5742 GB, free: 4.105 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.118e-05/0.5645, allocations: 89.05 kB / 0.5743 GB, free: 4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006025/0.5651, allocations: 325 kB / 0.5746 GB, free: 3.676 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.903e-05/0.5652, allocations: 25.7 kB / 0.5746 GB, free: 3.645 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.5654, allocations: 278.8 kB / 0.5749 GB, free: 3.371 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001965/0.5656, allocations: 157.7 kB / 0.575 GB, free: 3.215 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.281e-05/0.5657, allocations: 0 / 0.575 GB, free: 3.215 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.5658, allocations: 334.9 kB / 0.5754 GB, free: 2.879 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004936/0.5663, allocations: 173.2 kB / 0.5755 GB, free: 2.707 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005914/0.5669, allocations: 291.3 kB / 0.5758 GB, free: 2.379 MB / 410.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.003819/0.5708, allocations: 0.7396 MB / 0.5765 GB, free: 1.621 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.5708, allocations: 0 / 0.5765 GB, free: 1.621 MB / 410.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001934/0.5728, allocations: 0.6206 MB / 0.5771 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.5728, allocations: 7.938 kB / 0.5771 GB, free: 0.9844 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.611e-05/0.5728, allocations: 7.906 kB / 0.5771 GB, free: 0.9766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006455/0.5735, allocations: 133 kB / 0.5773 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000972/0.5745, allocations: 107.9 kB / 0.5774 GB, free: 0.7383 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00444/0.5789, allocations: 2.195 MB / 0.5795 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004652/0.5794, allocations: 19.83 kB / 0.5795 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.126e-05/0.5795, allocations: 20 kB / 0.5796 GB, free: 14.39 MB / 426.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: 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.0001758/0.5797, allocations: 49.52 kB / 0.5796 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.5799, allocations: 43.44 kB / 0.5796 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002031/0.5819, allocations: 0.6022 MB / 0.5802 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.582, allocations: 8 kB / 0.5802 GB, free: 13.67 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.582, allocations: 0 / 0.5802 GB, free: 13.67 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.582, allocations: 7.984 kB / 0.5803 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003732/0.5858, allocations: 1.249 MB / 0.5815 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.315e-06/0.5858, allocations: 0 / 0.5815 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007499/0.5866, allocations: 75.89 kB / 0.5815 GB, free: 12.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007212/0.5873, allocations: 140.7 kB / 0.5817 GB, free: 12.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.814e-05/0.5874, allocations: 4.156 kB / 0.5817 GB, free: 12.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004307/0.5917, allocations: 2.177 MB / 0.5838 GB, free: 9.824 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/0.5918, allocations: 4 kB / 0.5838 GB, free: 9.82 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002555/0.5944, allocations: 1.007 MB / 0.5848 GB, free: 8.742 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.5946, allocations: 116.5 kB / 0.5849 GB, free: 8.609 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001202/0.5948, allocations: 11.89 kB / 0.5849 GB, free: 8.598 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004502/0.5952, allocations: 4 kB / 0.5849 GB, free: 8.594 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.606e-05/0.5953, allocations: 27.95 kB / 0.5849 GB, free: 8.566 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.067e-05/0.5954, allocations: 16 kB / 0.585 GB, free: 8.551 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004404/0.5958, allocations: 243.2 kB / 0.5852 GB, free: 8.32 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009479/0.5968, allocations: 132 kB / 0.5853 GB, free: 8.188 MB / 426.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.0002881/0.5971, allocations: 115.1 kB / 0.5854 GB, free: 8.062 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001834/0.599, allocations: 0.6074 MB / 0.586 GB, free: 7.445 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.599, allocations: 0 / 0.586 GB, free: 7.445 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001163/0.6002, allocations: 385.9 kB / 0.5864 GB, free: 7.059 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.6013, allocations: 89.5 kB / 0.5865 GB, free: 6.965 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003269/0.6046, allocations: 1.052 MB / 0.5875 GB, free: 5.859 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009927/0.6056, allocations: 0.9834 MB / 0.5885 GB, free: 4.848 MB / 426.7 MB Notification: Performance of SimCode: time 1.753e-06/0.6056, allocations: 7.938 kB / 0.5885 GB, free: 4.84 MB / 426.7 MB Notification: Performance of Templates: time 0.02141/0.6271, allocations: 9.074 MB / 0.5973 GB, free: 11.76 MB / 442.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)