Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.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.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") [: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.0017/0.0017, allocations: 190.3 kB / 7.803 MB, free: 2.496 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.818/1.818, 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.001305/0.001304, allocations: 90.67 kB / 261.4 MB, free: 13.64 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.2687/0.2687, allocations: 37.97 MB / 347.3 MB, free: 7.559 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.175e-06/8.206e-06, allocations: 0 / 409.3 MB, free: 47.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1144, allocations: 56.31 MB / 465.6 MB, free: 6.859 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3912/0.5057, allocations: 112.1 MB / 0.5642 GB, free: 14.78 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003403/0.5061, allocations: 87.95 kB / 0.5643 GB, free: 14.69 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 inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$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 inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. Notification: Performance of FrontEnd: time 0.1372/0.6433, allocations: 27.69 MB / 0.5913 GB, free: 2.727 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.477e-05/0.6434, allocations: 31.94 kB / 0.5913 GB, free: 2.695 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.007604/0.651, allocations: 1.641 MB / 0.5929 GB, free: 0.9727 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.6511, allocations: 8.031 kB / 0.5929 GB, free: 0.9648 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001652/0.6528, allocations: 158.6 kB / 0.5931 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00926/0.6621, allocations: 1.645 MB / 0.5947 GB, free: 15.12 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001237/0.6634, allocations: 0.4944 MB / 0.5952 GB, free: 14.55 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006389/0.664, allocations: 60 kB / 0.5952 GB, free: 14.49 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009047/0.6731, allocations: 1.687 MB / 0.5969 GB, free: 12.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007071/0.6802, allocations: 1.693 MB / 0.5985 GB, free: 11.06 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.389e-05/0.6803, allocations: 0 / 0.5985 GB, free: 11.06 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002157/0.6806, allocations: 7.984 kB / 0.5985 GB, free: 11.05 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003063/0.6809, allocations: 81.86 kB / 0.5986 GB, free: 10.98 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01995/0.7008, allocations: 5.703 MB / 0.6042 GB, free: 5.172 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00407/0.705, allocations: 1.2 MB / 0.6054 GB, free: 3.961 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002916/0.7079, allocations: 0.9927 MB / 0.6063 GB, free: 2.965 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001664/0.7081, allocations: 9 kB / 0.6063 GB, free: 2.953 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003141/0.7113, allocations: 1.155 MB / 0.6075 GB, free: 1.777 MB / 442.7 MB Notification: Performance of pre-optimization done (n=125): time 5.46e-06/0.7113, allocations: 0 / 0.6075 GB, free: 1.777 MB / 442.7 MB Notification: Performance of matching and sorting (n=126): time 0.01491/0.7263, allocations: 4.2 MB / 0.6116 GB, free: 13.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.158e-05/0.7264, allocations: 102.1 kB / 0.6117 GB, free: 13.38 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007417/0.7272, allocations: 357.1 kB / 0.612 GB, free: 13.03 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004144/0.7276, allocations: 45.69 kB / 0.6121 GB, free: 12.98 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003385/0.7279, allocations: 355 kB / 0.6124 GB, free: 12.62 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006909/0.7286, allocations: 410.1 kB / 0.6128 GB, free: 12.22 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001415/0.7288, allocations: 0 / 0.6128 GB, free: 12.22 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.729, allocations: 366.7 kB / 0.6131 GB, free: 11.85 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002531/0.7315, allocations: 0.928 MB / 0.614 GB, free: 10.92 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002947/0.7345, allocations: 1.076 MB / 0.6151 GB, free: 9.805 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004543/0.7391, allocations: 1.04 MB / 0.6161 GB, free: 8.766 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-05/0.7392, allocations: 4 kB / 0.6161 GB, free: 8.762 MB / 458.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.03084/0.7701, allocations: 4.039 MB / 0.6201 GB, free: 4.688 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.7701, allocations: 6.812 kB / 0.6201 GB, free: 4.684 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.479e-05/0.7702, allocations: 4 kB / 0.6201 GB, free: 4.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01652/0.7867, allocations: 1.719 MB / 0.6217 GB, free: 2.953 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002164/0.7889, allocations: 151.8 kB / 0.6219 GB, free: 2.805 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04357/0.8325, allocations: 9.977 MB / 0.6316 GB, free: 8.59 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002678/0.8353, allocations: 183.9 kB / 0.6318 GB, free: 8.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003612/0.8357, allocations: 63.94 kB / 0.6319 GB, free: 8.348 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 97 * Array equations: 4 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0005268/0.8362, allocations: 73.47 kB / 0.6319 GB, free: 8.273 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003702/0.8366, allocations: 79.05 kB / 0.632 GB, free: 8.195 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007196/0.8438, allocations: 2.148 MB / 0.6341 GB, free: 6.016 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000164/0.844, allocations: 39.97 kB / 0.6341 GB, free: 5.977 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.844, allocations: 0 / 0.6341 GB, free: 5.977 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.965e-05/0.8441, allocations: 7.984 kB / 0.6342 GB, free: 5.969 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01305/0.8571, allocations: 3.828 MB / 0.6379 GB, free: 2.051 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/0.8572, allocations: 0 / 0.6379 GB, free: 2.051 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1758/1.033, allocations: 3.148 MB / 0.641 GB, free: 191.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001954/1.033, allocations: 37.41 kB / 0.641 GB, free: 191.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000379/1.034, allocations: 25.59 kB / 0.641 GB, free: 191.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/1.035, allocations: 1.408 MB / 0.6424 GB, free: 190.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.035, allocations: 0 / 0.6424 GB, free: 190.7 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008913/1.044, allocations: 3.655 MB / 0.646 GB, free: 190.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/1.045, allocations: 343.4 kB / 0.6463 GB, free: 190.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004495/1.046, allocations: 76.77 kB / 0.6464 GB, free: 190.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002904/1.048, allocations: 236.1 kB / 0.6466 GB, free: 190.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006199/1.049, allocations: 148 kB / 0.6467 GB, free: 190.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000185/1.049, allocations: 41.97 kB / 0.6468 GB, free: 190.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0004546/1.05, allocations: 275.3 kB / 0.647 GB, free: 190 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00173/1.051, allocations: 330.9 kB / 0.6474 GB, free: 190 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 91 * Array equations: 4 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006379/1.052, allocations: 219.6 kB / 0.6476 GB, free: 189.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01224/1.064, allocations: 2.52 MB / 0.65 GB, free: 189.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/1.064, allocations: 0 / 0.65 GB, free: 189.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01722/1.082, allocations: 2.198 MB / 0.6522 GB, free: 189.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002382/1.084, allocations: 107.3 kB / 0.6523 GB, free: 189.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01151/1.096, allocations: 3.043 MB / 0.6552 GB, free: 188.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001984/1.098, allocations: 1.246 MB / 0.6565 GB, free: 188.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.543e-06/1.098, allocations: 4 kB / 0.6565 GB, free: 188.2 MB / 474.7 MB Notification: Performance of Templates: time 0.04215/1.14, allocations: 21.01 MB / 0.677 GB, free: 187.2 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)