Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.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.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter") [: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.002526/0.002526, allocations: 187.1 kB / 7.806 MB, free: 2.488 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.729/1.729, allocations: 205.2 MB / 213.4 MB, free: 13.92 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.001302/0.001301, allocations: 105.2 kB / 261.4 MB, free: 13.61 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.2735/0.2735, allocations: 37.98 MB / 347.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.407e-06/9.458e-06, allocations: 4 kB / 409.3 MB, free: 47.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1134, allocations: 56.32 MB / 465.6 MB, free: 6.828 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3858/0.4992, allocations: 111.7 MB / 0.5638 GB, free: 15.16 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003378/0.4996, allocations: 87.95 kB / 0.5638 GB, free: 15.08 MB / 410.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:17:7-17:46:writable] Error: Variable ac_dc.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter.Modulator.$for loop scope$. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:20:7-20:46:writable] Error: Variable ac_dc.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter.Modulator.$for loop scope$. Notification: Performance of FrontEnd: time 0.1081/0.6078, allocations: 23.54 MB / 0.5868 GB, free: 7.328 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.557e-05/0.6079, allocations: 20 kB / 0.5869 GB, free: 7.309 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.004644/0.6126, allocations: 1.328 MB / 0.5882 GB, free: 5.902 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.6126, allocations: 8.031 kB / 0.5882 GB, free: 5.895 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001675/0.6143, allocations: 162.6 kB / 0.5883 GB, free: 5.734 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006964/0.6213, allocations: 1.407 MB / 0.5897 GB, free: 4.285 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002772/0.6217, allocations: 143.1 kB / 0.5898 GB, free: 4.125 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004903/0.6222, allocations: 59.91 kB / 0.5899 GB, free: 4.066 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003225/0.6254, allocations: 0.9606 MB / 0.5908 GB, free: 3.105 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003864/0.6293, allocations: 1.334 MB / 0.5921 GB, free: 1.691 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.831e-05/0.6294, allocations: 4 kB / 0.5921 GB, free: 1.688 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001528/0.6296, allocations: 4 kB / 0.5921 GB, free: 1.684 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001639/0.6298, allocations: 65.97 kB / 0.5922 GB, free: 1.621 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01093/0.6407, allocations: 4.591 MB / 0.5967 GB, free: 12.89 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001916/0.6427, allocations: 0.7493 MB / 0.5974 GB, free: 12.12 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001563/0.6443, allocations: 0.5276 MB / 0.5979 GB, free: 11.59 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.838e-05/0.6444, allocations: 8.656 kB / 0.5979 GB, free: 11.57 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001461/0.6458, allocations: 0.6003 MB / 0.5985 GB, free: 10.95 MB / 442.7 MB Notification: Performance of pre-optimization done (n=82): time 4.228e-06/0.6459, allocations: 0.5625 kB / 0.5985 GB, free: 10.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=83): time 0.006438/0.6523, allocations: 2.28 MB / 0.6007 GB, free: 8.59 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.6525, allocations: 123.5 kB / 0.6009 GB, free: 8.445 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008034/0.6533, allocations: 418 kB / 0.6013 GB, free: 8.031 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001957/0.6535, allocations: 49.69 kB / 0.6013 GB, free: 7.977 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004106/0.6539, allocations: 437.3 kB / 0.6017 GB, free: 7.543 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003796/0.6543, allocations: 272.1 kB / 0.602 GB, free: 7.273 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.492e-05/0.6544, allocations: 4 kB / 0.602 GB, free: 7.27 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.6546, allocations: 354.8 kB / 0.6023 GB, free: 6.914 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001241/0.6559, allocations: 0.4903 MB / 0.6028 GB, free: 6.426 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/0.6573, allocations: 0.752 MB / 0.6035 GB, free: 5.559 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001641/0.659, allocations: 0.5959 MB / 0.6041 GB, free: 4.961 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.872e-06/0.659, allocations: 0 / 0.6041 GB, free: 4.961 MB / 442.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.004017/0.6631, allocations: 1.484 MB / 0.6056 GB, free: 3.445 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.6631, allocations: 4 kB / 0.6056 GB, free: 3.441 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003103/0.6662, allocations: 1.197 MB / 0.6067 GB, free: 2.223 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005845/0.6669, allocations: 101.8 kB / 0.6068 GB, free: 2.117 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00154/0.6684, allocations: 183.7 kB / 0.607 GB, free: 1.938 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003787/0.6722, allocations: 2.858 MB / 0.6098 GB, free: 14.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.6734, allocations: 48.02 kB / 0.6099 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001919/0.6736, allocations: 63.95 kB / 0.6099 GB, free: 14.74 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 108 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003517/0.674, allocations: 93.88 kB / 0.61 GB, free: 14.64 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002571/0.6742, allocations: 67.16 kB / 0.6101 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003016/0.6773, allocations: 1.05 MB / 0.6111 GB, free: 13.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.093e-05/0.6774, allocations: 16 kB / 0.6111 GB, free: 13.48 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.6774, allocations: 0 / 0.6111 GB, free: 13.48 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.805e-05/0.6774, allocations: 11.92 kB / 0.6111 GB, free: 13.47 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005688/0.6831, allocations: 2.067 MB / 0.6131 GB, free: 11.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.6832, allocations: 0 / 0.6131 GB, free: 11.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/0.6847, allocations: 127.9 kB / 0.6133 GB, free: 11.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001202/0.6848, allocations: 28.84 kB / 0.6133 GB, free: 11.17 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/0.685, allocations: 23.88 kB / 0.6133 GB, free: 11.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001391/0.6864, allocations: 1.322 MB / 0.6146 GB, free: 9.707 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/0.6864, allocations: 0 / 0.6146 GB, free: 9.707 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004311/0.6907, allocations: 1.725 MB / 0.6163 GB, free: 7.91 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000687/0.6915, allocations: 236.1 kB / 0.6165 GB, free: 7.66 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003768/0.6919, allocations: 67.95 kB / 0.6166 GB, free: 7.594 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001532/0.6934, allocations: 99.89 kB / 0.6167 GB, free: 7.496 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.6936, allocations: 48.48 kB / 0.6167 GB, free: 7.449 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001115/0.6938, allocations: 31.97 kB / 0.6168 GB, free: 7.418 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0006024/0.6944, allocations: 306.9 kB / 0.617 GB, free: 7.121 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00148/0.6959, allocations: 216.2 kB / 0.6173 GB, free: 6.91 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 61 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005318/0.6964, allocations: 190.5 kB / 0.6174 GB, free: 6.711 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003691/0.7001, allocations: 1.4 MB / 0.6188 GB, free: 5.281 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.7002, allocations: 0 / 0.6188 GB, free: 5.281 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.7017, allocations: 0.5754 MB / 0.6194 GB, free: 4.699 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/0.7029, allocations: 110 kB / 0.6195 GB, free: 4.59 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005758/0.7087, allocations: 1.926 MB / 0.6213 GB, free: 2.613 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001809/0.7105, allocations: 1.187 MB / 0.6225 GB, free: 1.402 MB / 458.7 MB Notification: Performance of SimCode: time 1.363e-06/0.7106, allocations: 0 / 0.6225 GB, free: 1.402 MB / 458.7 MB Notification: Performance of Templates: time 0.03669/0.7473, allocations: 16.33 MB / 0.6385 GB, free: 1.059 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)