Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002284/0.002284, allocations: 173.5 kB / 16.76 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.798/2.798, allocations: 205.4 MB / 222.9 MB, free: 9.043 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001098/0.001097, allocations: 94.39 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3544/0.3544, allocations: 38.08 MB / 357.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000714/0.0007141, allocations: 12 kB / 423.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5056/0.5064, allocations: 56.32 MB / 480.3 MB, free: 9.219 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2442/0.7507, allocations: 102.2 MB / 0.5688 GB, free: 208 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004543/0.7512, allocations: 95.95 kB / 0.5689 GB, free: 112 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08128/0.8325, allocations: 15.67 MB / 0.5842 GB, free: 260 kB / 410.7 MB Notification: Performance of FrontEnd: time 4.399e-06/0.8326, allocations: 0 / 0.5842 GB, free: 260 kB / 410.7 MB Notification: Performance of Transformations before backend: time 6.279e-05/0.8327, allocations: 16 kB / 0.5842 GB, free: 244 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.004388/0.8371, allocations: 1.116 MB / 0.5853 GB, free: 15.06 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.824e-05/0.8372, allocations: 8.031 kB / 0.5853 GB, free: 15.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005459/0.8377, allocations: 84.09 kB / 0.5854 GB, free: 14.97 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004486/0.8422, allocations: 0.9125 MB / 0.5862 GB, free: 14.01 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008633/0.8432, allocations: 343.4 kB / 0.5866 GB, free: 13.63 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000361/0.8435, allocations: 64.56 kB / 0.5866 GB, free: 13.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004556/0.8481, allocations: 1.107 MB / 0.5877 GB, free: 12.42 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.81e-05/0.8482, allocations: 0 / 0.5877 GB, free: 12.42 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001361/0.8484, allocations: 28 kB / 0.5877 GB, free: 12.39 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.822e-05/0.8484, allocations: 12 kB / 0.5878 GB, free: 12.38 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005504/0.8539, allocations: 1.194 MB / 0.5889 GB, free: 11.19 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009764/0.8637, allocations: 3.276 MB / 0.5921 GB, free: 7.812 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004052/0.8679, allocations: 0.8271 MB / 0.5929 GB, free: 6.969 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002786/0.8707, allocations: 0.5963 MB / 0.5935 GB, free: 6.363 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.086e-05/0.8709, allocations: 4.438 kB / 0.5935 GB, free: 6.359 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002963/0.8739, allocations: 0.6773 MB / 0.5942 GB, free: 5.656 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 6.262e-06/0.8739, allocations: 0 / 0.5942 GB, free: 5.656 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.007467/0.8814, allocations: 1.565 MB / 0.5957 GB, free: 4.086 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001466/0.8816, allocations: 136.5 kB / 0.5958 GB, free: 3.922 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009399/0.8826, allocations: 389.8 kB / 0.5962 GB, free: 3.527 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001504/0.8827, allocations: 37.7 kB / 0.5962 GB, free: 3.484 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004271/0.8832, allocations: 303 kB / 0.5965 GB, free: 3.184 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003152/0.8835, allocations: 161.7 kB / 0.5967 GB, free: 3.023 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.949e-05/0.8836, allocations: 12 kB / 0.5967 GB, free: 3.012 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002364/0.8839, allocations: 362.8 kB / 0.597 GB, free: 2.648 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002109/0.886, allocations: 0.4969 MB / 0.5975 GB, free: 2.152 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002185/0.8882, allocations: 0.5953 MB / 0.5981 GB, free: 1.516 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003928/0.8921, allocations: 0.9832 MB / 0.5991 GB, free: 500 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/0.8922, allocations: 3.938 kB / 0.5991 GB, free: 496 kB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004744/0.897, allocations: 1.187 MB / 0.6002 GB, free: 15.28 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001225/0.8972, allocations: 51.88 kB / 0.6003 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.8972, allocations: 0 / 0.6003 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.713e-05/0.8973, allocations: 12.16 kB / 0.6003 GB, free: 15.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01023/0.9075, allocations: 1.588 MB / 0.6018 GB, free: 13.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01426/0.9218, allocations: 4.833 MB / 0.6066 GB, free: 8.531 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001562/0.9235, allocations: 131.5 kB / 0.6067 GB, free: 8.402 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002303/0.9237, allocations: 47.91 kB / 0.6067 GB, free: 8.355 MB / 442.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: 14 ($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.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008702/0.9246, allocations: 259.3 kB / 0.607 GB, free: 8.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002139/0.9249, allocations: 43.44 kB / 0.607 GB, free: 8.047 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005202/0.9301, allocations: 1.11 MB / 0.6081 GB, free: 6.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.008e-05/0.9302, allocations: 4 kB / 0.6081 GB, free: 6.926 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.9302, allocations: 0 / 0.6081 GB, free: 6.926 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.9302, allocations: 4 kB / 0.6081 GB, free: 6.922 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007163/0.9374, allocations: 2.258 MB / 0.6103 GB, free: 4.578 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/0.9375, allocations: 0 / 0.6103 GB, free: 4.578 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0129/0.9504, allocations: 1.838 MB / 0.6121 GB, free: 2.738 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-05/0.9505, allocations: 7.938 kB / 0.6121 GB, free: 2.73 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002325/0.9508, allocations: 15.98 kB / 0.6121 GB, free: 2.715 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-05/0.9508, allocations: 4 kB / 0.6121 GB, free: 2.711 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/0.9508, allocations: 4 kB / 0.6121 GB, free: 2.707 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00705/0.9579, allocations: 1.883 MB / 0.614 GB, free: 0.7852 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008008/0.9587, allocations: 204.3 kB / 0.6142 GB, free: 0.5664 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002526/0.959, allocations: 31.98 kB / 0.6142 GB, free: 0.5352 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/0.9603, allocations: 123.9 kB / 0.6143 GB, free: 424 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000397/0.9607, allocations: 91.84 kB / 0.6144 GB, free: 332 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.8e-05/0.9608, allocations: 19.98 kB / 0.6144 GB, free: 312 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006399/0.9615, allocations: 263.2 kB / 0.6147 GB, free: 52 kB / 442.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.9615, allocations: 0 / 0.6147 GB, free: 52 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.001372/0.9629, allocations: 191.6 kB / 0.6149 GB, free: 15.86 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000669/0.9636, allocations: 147 kB / 0.615 GB, free: 15.71 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01453/0.9781, allocations: 2.637 MB / 0.6176 GB, free: 13.07 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.688e-05/0.9782, allocations: 0 / 0.6176 GB, free: 13.07 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00703/0.9853, allocations: 1.163 MB / 0.6187 GB, free: 11.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001861/0.9872, allocations: 141.9 kB / 0.6189 GB, free: 11.77 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007383/0.9946, allocations: 1.93 MB / 0.6207 GB, free: 9.781 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009584/0.9957, allocations: 0.9332 MB / 0.6217 GB, free: 8.824 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005618/0.9962, allocations: 39.44 kB / 0.6217 GB, free: 8.785 MB / 458.7 MB Notification: Performance of SimCode: time 1.814e-06/0.9963, allocations: 0 / 0.6217 GB, free: 8.785 MB / 458.7 MB Notification: Performance of Templates: time 0.03195/1.028, allocations: 11.39 MB / 0.6328 GB, free: 13.39 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)