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") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001416/0.001416, allocations: 180.7 kB / 8.012 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.138/2.138, allocations: 205.3 MB / 213.7 MB, free: 1.742 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.001097/0.001097, allocations: 90.62 kB / 261.8 MB, free: 1.668 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.2612/0.2612, allocations: 38 MB / 347.7 MB, free: 5.758 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.852e-05/1.84e-05, allocations: 0 / 409.9 MB, free: 35.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1038, allocations: 56.33 MB / 466.2 MB, free: 10.8 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4941/0.598, allocations: 111.7 MB / 0.5643 GB, free: 120 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/0.5983, allocations: 88.02 kB / 0.5644 GB, free: 76 kB / 362.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 - DAE generated: time 0.1128/0.7112, allocations: 23.91 MB / 0.5877 GB, free: 11.75 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.7113, allocations: 0 / 0.5877 GB, free: 11.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001135/0.7114, allocations: 23.94 kB / 0.5878 GB, free: 11.72 MB / 394.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.005915/0.7173, allocations: 1.32 MB / 0.5891 GB, free: 10.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.472e-05/0.7174, allocations: 11.97 kB / 0.5891 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001784/0.7192, allocations: 162.5 kB / 0.5892 GB, free: 10.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008019/0.7272, allocations: 1.396 MB / 0.5906 GB, free: 9.031 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003162/0.7276, allocations: 140.5 kB / 0.5907 GB, free: 8.879 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004494/0.7281, allocations: 63.48 kB / 0.5908 GB, free: 8.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00353/0.7316, allocations: 0.9297 MB / 0.5917 GB, free: 8.211 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004151/0.7358, allocations: 1.305 MB / 0.593 GB, free: 7.168 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.863e-05/0.7359, allocations: 0 / 0.593 GB, free: 7.168 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001941/0.7361, allocations: 4 kB / 0.593 GB, free: 7.164 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001921/0.7363, allocations: 61.78 kB / 0.593 GB, free: 7.109 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01283/0.7492, allocations: 4.584 MB / 0.5975 GB, free: 3.137 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002786/0.752, allocations: 0.8671 MB / 0.5984 GB, free: 2.488 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001546/0.7536, allocations: 489.7 kB / 0.5988 GB, free: 2.164 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.751e-05/0.7537, allocations: 4.562 kB / 0.5988 GB, free: 2.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001789/0.7555, allocations: 0.624 MB / 0.5994 GB, free: 1.676 MB / 394.7 MB Notification: Performance of pre-optimization done (n=82): time 5.18e-06/0.7556, allocations: 4 kB / 0.5994 GB, free: 1.672 MB / 394.7 MB Notification: Performance of matching and sorting (n=83): time 0.007735/0.7633, allocations: 2.272 MB / 0.6017 GB, free: 15.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.7635, allocations: 139.1 kB / 0.6018 GB, free: 15.61 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009486/0.7644, allocations: 413.4 kB / 0.6022 GB, free: 15.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001702/0.7646, allocations: 44.56 kB / 0.6022 GB, free: 15.24 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005771/0.7652, allocations: 499.5 kB / 0.6027 GB, free: 14.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004423/0.7657, allocations: 267.8 kB / 0.603 GB, free: 14.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.834e-05/0.7658, allocations: 0 / 0.603 GB, free: 14.6 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002169/0.7661, allocations: 363.5 kB / 0.6033 GB, free: 14.26 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.7675, allocations: 482.5 kB / 0.6038 GB, free: 13.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001707/0.7692, allocations: 0.7398 MB / 0.6045 GB, free: 13.29 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001842/0.7711, allocations: 0.5786 MB / 0.6051 GB, free: 12.89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/0.7711, allocations: 0 / 0.6051 GB, free: 12.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.004911/0.7761, allocations: 1.44 MB / 0.6065 GB, free: 11.76 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001441/0.7763, allocations: 64.42 kB / 0.6065 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004002/0.7803, allocations: 1.226 MB / 0.6077 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007377/0.781, allocations: 101 kB / 0.6078 GB, free: 10.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001904/0.783, allocations: 198.4 kB / 0.608 GB, free: 10.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003352/0.7863, allocations: 2.874 MB / 0.6108 GB, free: 7.543 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001218/0.7876, allocations: 55.84 kB / 0.6109 GB, free: 7.488 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001753/0.7878, allocations: 67.95 kB / 0.6109 GB, free: 7.422 MB / 410.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,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003595/0.7882, allocations: 163.8 kB / 0.6111 GB, free: 7.258 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000205/0.7884, allocations: 67.16 kB / 0.6111 GB, free: 7.191 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002702/0.7911, allocations: 1.045 MB / 0.6122 GB, free: 6.113 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.164e-05/0.7912, allocations: 23.98 kB / 0.6122 GB, free: 6.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.7912, allocations: 3.938 kB / 0.6122 GB, free: 6.086 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.7912, allocations: 7.969 kB / 0.6122 GB, free: 6.078 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005182/0.7964, allocations: 2.121 MB / 0.6143 GB, free: 3.883 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.316e-06/0.7965, allocations: 0 / 0.6143 GB, free: 3.883 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001419/0.7979, allocations: 143.8 kB / 0.6144 GB, free: 3.742 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001096/0.798, allocations: 24.81 kB / 0.6144 GB, free: 3.715 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.7981, allocations: 19.97 kB / 0.6145 GB, free: 3.695 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.7993, allocations: 1.333 MB / 0.6158 GB, free: 2.246 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.056e-06/0.7994, allocations: 4.031 kB / 0.6158 GB, free: 2.242 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003736/0.8031, allocations: 1.69 MB / 0.6174 GB, free: 492 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006339/0.8038, allocations: 240 kB / 0.6176 GB, free: 232 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000291/0.8041, allocations: 71.94 kB / 0.6177 GB, free: 160 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/0.8055, allocations: 95.86 kB / 0.6178 GB, free: 64 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001845/0.8057, allocations: 52.66 kB / 0.6178 GB, free: 12 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/0.8058, allocations: 31.97 kB / 0.6179 GB, free: 15.98 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005419/0.8064, allocations: 302.9 kB / 0.6182 GB, free: 15.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.8064, allocations: 0 / 0.6182 GB, free: 15.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00145/0.8079, allocations: 228 kB / 0.6184 GB, free: 15.46 MB / 426.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.0004795/0.8084, allocations: 194.8 kB / 0.6186 GB, free: 15.26 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003268/0.8116, allocations: 1.513 MB / 0.62 GB, free: 13.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.8117, allocations: 3.938 kB / 0.6201 GB, free: 13.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001222/0.8129, allocations: 0.5631 MB / 0.6206 GB, free: 13.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.8141, allocations: 111.1 kB / 0.6207 GB, free: 13.03 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004693/0.8188, allocations: 1.921 MB / 0.6226 GB, free: 11.06 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.8199, allocations: 1.13 MB / 0.6237 GB, free: 9.906 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005139/0.8204, allocations: 67.42 kB / 0.6238 GB, free: 9.84 MB / 426.7 MB Notification: Performance of SimCode: time 1.403e-06/0.8204, allocations: 0 / 0.6238 GB, free: 9.84 MB / 426.7 MB Notification: Performance of Templates: time 0.03664/0.857, allocations: 16.32 MB / 0.6397 GB, free: 9.516 MB / 442.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)