Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001229/0.001229, allocations: 167.3 kB / 16.07 MB, free: 5.578 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.235/1.235, allocations: 205.4 MB / 222.2 MB, free: 9.016 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.0007498/0.0007497, allocations: 90.3 kB / 270.6 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.167/0.167, allocations: 38.08 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000348/0.000348, allocations: 12 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2326, allocations: 56.33 MB / 479.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.005709/0.2383, allocations: 6.443 MB / 486.1 MB, free: 4.941 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.2409, allocations: 1.875 MB / 487.9 MB, free: 3.586 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004075/0.2414, allocations: 31.06 kB / 488 MB, free: 3.574 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000585/0.242, allocations: 209.4 kB / 488.2 MB, free: 3.473 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007777/0.2428, allocations: 373 kB / 488.5 MB, free: 3.266 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004789/0.2432, allocations: 188.8 kB / 488.7 MB, free: 3.172 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001073/0.2443, allocations: 1.166 MB / 489.9 MB, free: 2.691 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004967/0.2448, allocations: 420.6 kB / 490.3 MB, free: 2.512 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005082/0.2454, allocations: 376 kB / 490.7 MB, free: 2.359 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000653/0.246, allocations: 439.8 kB / 491.1 MB, free: 2.207 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.164e-05/0.2461, allocations: 37.03 kB / 491.1 MB, free: 2.207 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.2462, allocations: 36.19 kB / 491.2 MB, free: 2.207 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002379/0.2465, allocations: 224.2 kB / 491.4 MB, free: 2.133 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003491/0.2468, allocations: 361.4 kB / 491.7 MB, free: 1.918 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008777/0.2477, allocations: 0.8106 MB / 492.6 MB, free: 1.75 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.2477, allocations: 9.656 kB / 492.6 MB, free: 1.742 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2478, allocations: 0 / 492.6 MB, free: 1.742 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.2478, allocations: 0 / 492.6 MB, free: 1.742 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.001613/0.2494, allocations: 0.912 MB / 493.5 MB, free: 1.125 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.2494, allocations: 9.797 kB / 493.5 MB, free: 1.125 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.2496, allocations: 78.19 kB / 493.6 MB, free: 1.086 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009878/0.2506, allocations: 0.6125 MB / 494.2 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.2507, allocations: 119.9 kB / 494.3 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.173e-05/0.2508, allocations: 63.25 kB / 494.4 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/0.2521, allocations: 0.7499 MB / 495.1 MB, free: 220 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.2521, allocations: 1.094 kB / 495.1 MB, free: 220 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.757e-05/0.2522, allocations: 33.03 kB / 495.1 MB, free: 192 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.761e-05/0.2522, allocations: 19.72 kB / 495.2 MB, free: 188 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.2534, allocations: 0.6205 MB / 495.8 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003411/0.2569, allocations: 2.467 MB / 498.2 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008767/0.2578, allocations: 423.6 kB / 498.7 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004587/0.2582, allocations: 203.9 kB / 498.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.522e-05/0.2583, allocations: 4.219 kB / 498.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004209/0.2587, allocations: 252.9 kB / 499.1 MB, free: 13.83 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 2.545e-06/0.2587, allocations: 1 kB / 499.1 MB, free: 13.83 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.002862/0.2616, allocations: 0.8821 MB / 500 MB, free: 13.3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.597e-05/0.2617, allocations: 136.8 kB / 0.4884 GB, free: 13.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004661/0.2621, allocations: 396.2 kB / 0.4888 GB, free: 12.89 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.2622, allocations: 36.72 kB / 0.4888 GB, free: 12.85 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002134/0.2624, allocations: 319.2 kB / 0.4891 GB, free: 12.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.048e-05/0.2625, allocations: 114 kB / 0.4892 GB, free: 12.47 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.397e-05/0.2625, allocations: 9.844 kB / 0.4892 GB, free: 12.46 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.2627, allocations: 362.7 kB / 0.4896 GB, free: 12.11 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002778/0.2629, allocations: 124.1 kB / 0.4897 GB, free: 12.05 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003342/0.2633, allocations: 246.9 kB / 0.4899 GB, free: 11.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.2647, allocations: 0.6523 MB / 0.4906 GB, free: 11.43 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.2647, allocations: 1.031 kB / 0.4906 GB, free: 11.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001234/0.2659, allocations: 0.5556 MB / 0.4911 GB, free: 11.12 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.266, allocations: 7.781 kB / 0.4911 GB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.669e-06/0.266, allocations: 3.969 kB / 0.4911 GB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004248/0.2664, allocations: 158.4 kB / 0.4913 GB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.2667, allocations: 73.56 kB / 0.4914 GB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002859/0.2696, allocations: 2.041 MB / 0.4933 GB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003545/0.27, allocations: 54.17 kB / 0.4934 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/0.27, allocations: 18.19 kB / 0.4934 GB, free: 9.168 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003674/0.2704, allocations: 253.4 kB / 0.4937 GB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.682e-05/0.2704, allocations: 49.47 kB / 0.4937 GB, free: 8.934 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001161/0.2716, allocations: 485 kB / 0.4942 GB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.2716, allocations: 4.219 kB / 0.4942 GB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.2716, allocations: 1.125 kB / 0.4942 GB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.2717, allocations: 2.031 kB / 0.4942 GB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007685/0.2724, allocations: 0.6818 MB / 0.4948 GB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.2724, allocations: 1.375 kB / 0.4948 GB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002308/0.2727, allocations: 47.38 kB / 0.4949 GB, free: 8.062 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003877/0.2731, allocations: 145.9 kB / 0.495 GB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.997e-05/0.2731, allocations: 10.91 kB / 0.495 GB, free: 7.984 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002698/0.2758, allocations: 2.03 MB / 0.497 GB, free: 6.156 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.2758, allocations: 5.094 kB / 0.497 GB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.2773, allocations: 0.6994 MB / 0.4977 GB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001654/0.2775, allocations: 147 kB / 0.4978 GB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.516e-05/0.2776, allocations: 7.344 kB / 0.4979 GB, free: 5.578 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.2778, allocations: 25.56 kB / 0.4979 GB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.97e-05/0.2779, allocations: 43.62 kB / 0.4979 GB, free: 5.535 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-05/0.2779, allocations: 7.688 kB / 0.4979 GB, free: 5.535 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003121/0.2783, allocations: 279.4 kB / 0.4982 GB, free: 5.359 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2783, allocations: 0 / 0.4982 GB, free: 5.359 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006069/0.2789, allocations: 159.6 kB / 0.4983 GB, free: 5.324 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001172/0.279, allocations: 115.5 kB / 0.4985 GB, free: 5.219 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009076/0.2799, allocations: 0.493 MB / 0.4989 GB, free: 4.922 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2799, allocations: 0 / 0.4989 GB, free: 4.922 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005003/0.2804, allocations: 337.8 kB / 0.4993 GB, free: 4.691 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006658/0.2811, allocations: 143.9 kB / 0.4994 GB, free: 4.625 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002096/0.2832, allocations: 1.578 MB / 0.5009 GB, free: 3.496 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004561/0.2837, allocations: 0.9273 MB / 0.5018 GB, free: 2.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.443e-05/0.2838, allocations: 35.09 kB / 0.5019 GB, free: 2.672 MB / 330.7 MB Notification: Performance of SimCode: time 1.423e-06/0.2838, allocations: 0 / 0.5019 GB, free: 2.672 MB / 330.7 MB Notification: Performance of Templates: time 0.01164/0.2954, allocations: 10.21 MB / 0.5119 GB, free: 8.918 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)