Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009332/0.0009332, allocations: 168 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.207/1.207, allocations: 205.4 MB / 222.2 MB, free: 9.031 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.0007035/0.0007035, allocations: 74.45 kB / 270.6 MB, free: 8.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1672/0.1672, allocations: 38.07 MB / 356.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003916/0.0003917, allocations: 12 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.2392, allocations: 56.32 MB / 479.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006336/0.2456, allocations: 7.116 MB / 486.7 MB, free: 4.422 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003116/0.2487, allocations: 1.744 MB / 488.5 MB, free: 3.172 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008332/0.2496, allocations: 54.09 kB / 488.5 MB, free: 3.148 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004525/0.2501, allocations: 145.2 kB / 488.7 MB, free: 3.074 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001561/0.2516, allocations: 495.4 kB / 489.2 MB, free: 2.809 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008405/0.2525, allocations: 262.8 kB / 489.4 MB, free: 2.688 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001812/0.2543, allocations: 1.31 MB / 490.7 MB, free: 2.207 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005085/0.2549, allocations: 334.5 kB / 491.1 MB, free: 2.082 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009042/0.2558, allocations: 398.7 kB / 491.4 MB, free: 1.934 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009928/0.2568, allocations: 0.5074 MB / 492 MB, free: 1.762 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.2569, allocations: 34.19 kB / 492 MB, free: 1.758 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000177/0.2571, allocations: 30.25 kB / 492 MB, free: 1.758 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003518/0.2574, allocations: 289.6 kB / 492.3 MB, free: 1.684 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004304/0.2579, allocations: 369.7 kB / 492.7 MB, free: 1.469 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008463/0.2587, allocations: 0.6892 MB / 493.4 MB, free: 1.316 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.2588, allocations: 1.062 kB / 493.4 MB, free: 1.316 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2588, allocations: 0 / 493.4 MB, free: 1.316 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.422e-05/0.2588, allocations: 0 / 493.4 MB, free: 1.316 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001902/0.2607, allocations: 1.01 MB / 494.4 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.2608, allocations: 8.75 kB / 494.4 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000186/0.2609, allocations: 84.31 kB / 494.5 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009383/0.2619, allocations: 0.5741 MB / 495 MB, free: 180 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.262, allocations: 119.6 kB / 495.1 MB, free: 84 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.2621, allocations: 66.58 kB / 495.2 MB, free: 60 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/0.2639, allocations: 0.8746 MB / 496.1 MB, free: 15.67 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.2639, allocations: 1.25 kB / 496.1 MB, free: 15.67 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.924e-05/0.264, allocations: 27.33 kB / 496.1 MB, free: 15.65 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001227/0.2641, allocations: 36.91 kB / 496.1 MB, free: 15.65 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/0.2655, allocations: 0.6322 MB / 496.8 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004165/0.2697, allocations: 2.778 MB / 499.6 MB, free: 13.53 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001701/0.2714, allocations: 0.928 MB / 0.4888 GB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000744/0.2722, allocations: 327.9 kB / 0.4891 GB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.2722, allocations: 8.891 kB / 0.4891 GB, free: 12.67 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007105/0.2729, allocations: 359.5 kB / 0.4894 GB, free: 12.44 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 2.665e-06/0.2729, allocations: 1.094 kB / 0.4894 GB, free: 12.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.00426/0.2772, allocations: 2.035 MB / 0.4914 GB, free: 11.05 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.144e-05/0.2773, allocations: 113.7 kB / 0.4915 GB, free: 10.92 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006689/0.278, allocations: 0.504 MB / 0.492 GB, free: 10.62 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.956e-05/0.2781, allocations: 43.45 kB / 0.4921 GB, free: 10.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.2783, allocations: 358.3 kB / 0.4924 GB, free: 10.26 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.2785, allocations: 138 kB / 0.4925 GB, free: 10.14 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.285e-05/0.2785, allocations: 14.66 kB / 0.4925 GB, free: 10.13 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.2787, allocations: 369.7 kB / 0.4929 GB, free: 9.773 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003638/0.279, allocations: 220.7 kB / 0.4931 GB, free: 9.668 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004282/0.2795, allocations: 387.8 kB / 0.4935 GB, free: 9.355 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007744/0.2803, allocations: 0.6199 MB / 0.4941 GB, free: 8.895 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.2803, allocations: 1.062 kB / 0.4941 GB, free: 8.895 MB / 330.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001357/0.2816, allocations: 0.8897 MB / 0.4949 GB, free: 8.359 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.518e-05/0.2817, allocations: 51.12 kB / 0.495 GB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.2817, allocations: 5.719 kB / 0.495 GB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002839/0.282, allocations: 88.34 kB / 0.4951 GB, free: 8.273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003948/0.2824, allocations: 106.5 kB / 0.4952 GB, free: 8.246 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002445/0.2849, allocations: 2.99 MB / 0.4981 GB, free: 5.301 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004842/0.2854, allocations: 33.84 kB / 0.4981 GB, free: 5.285 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.2855, allocations: 41.84 kB / 0.4982 GB, free: 5.273 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * 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%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005244/0.286, allocations: 272.7 kB / 0.4984 GB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.2862, allocations: 62.94 kB / 0.4985 GB, free: 5.027 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001634/0.2878, allocations: 0.7294 MB / 0.4992 GB, free: 4.57 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.2878, allocations: 13.42 kB / 0.4992 GB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.2879, allocations: 1.375 kB / 0.4992 GB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.2879, allocations: 1.375 kB / 0.4992 GB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002798/0.2907, allocations: 1.556 MB / 0.5007 GB, free: 3.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.82e-06/0.2907, allocations: 0 / 0.5007 GB, free: 3.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002921/0.291, allocations: 70.28 kB / 0.5008 GB, free: 3.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002976/0.2913, allocations: 94.64 kB / 0.5009 GB, free: 3.375 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.945e-05/0.2914, allocations: 17.58 kB / 0.5009 GB, free: 3.363 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002309/0.2937, allocations: 2.98 MB / 0.5038 GB, free: 440 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.2937, allocations: 1.344 kB / 0.5038 GB, free: 440 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002077/0.2958, allocations: 1.102 MB / 0.5049 GB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002862/0.2961, allocations: 176.4 kB / 0.5051 GB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.2962, allocations: 27.98 kB / 0.5051 GB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003988/0.2967, allocations: 39.95 kB / 0.5051 GB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.445e-05/0.2967, allocations: 39.83 kB / 0.5052 GB, free: 15.26 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.394e-05/0.2968, allocations: 15.98 kB / 0.5052 GB, free: 15.24 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004357/0.2972, allocations: 354.8 kB / 0.5055 GB, free: 14.9 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2972, allocations: 0 / 0.5055 GB, free: 14.9 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007744/0.298, allocations: 152 kB / 0.5057 GB, free: 14.75 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * 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: 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001892/0.2982, allocations: 135.7 kB / 0.5058 GB, free: 14.61 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001604/0.2998, allocations: 0.9099 MB / 0.5067 GB, free: 13.67 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2999, allocations: 0 / 0.5067 GB, free: 13.67 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009047/0.3008, allocations: 0.5059 MB / 0.5072 GB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009999/0.3018, allocations: 142.2 kB / 0.5073 GB, free: 13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002854/0.3046, allocations: 1.87 MB / 0.5092 GB, free: 11.08 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005781/0.3052, allocations: 0.976 MB / 0.5101 GB, free: 10.08 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.3054, allocations: 43.42 kB / 0.5101 GB, free: 10.04 MB / 346.7 MB Notification: Performance of SimCode: time 5.71e-07/0.3054, allocations: 0 / 0.5101 GB, free: 10.04 MB / 346.7 MB Notification: Performance of Templates: time 0.0176/0.323, allocations: 13.38 MB / 0.5232 GB, free: 12.66 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)