Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 113 kB / 17.07 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 191 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1953/0.1953, allocations: 38.02 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 59.91 kB / 458.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4447/0.446, allocations: 58.05 MB / 0.5041 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.008059/0.4541, allocations: 6.265 MB / 0.5102 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00317/0.4573, allocations: 1.416 MB / 0.5116 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004644/0.4578, allocations: 23.34 kB / 0.5116 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005513/0.4584, allocations: 146.9 kB / 0.5117 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001025/0.4595, allocations: 409.9 kB / 0.5121 GB, free: 2.109 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006621/0.4601, allocations: 196.8 kB / 0.5123 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001503/0.4617, allocations: 1.087 MB / 0.5134 GB, free: 1.527 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005157/0.4622, allocations: 348.9 kB / 0.5137 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008309/0.463, allocations: 464.1 kB / 0.5142 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009889/0.464, allocations: 0.5294 MB / 0.5147 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001332/0.4642, allocations: 64.25 kB / 0.5147 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002/0.4644, allocations: 64.75 kB / 0.5148 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004418/0.4648, allocations: 308.6 kB / 0.5151 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004526/0.4653, allocations: 365.6 kB / 0.5154 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001312/0.4666, allocations: 0.844 MB / 0.5163 GB, free: 364 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.4666, allocations: 1.203 kB / 0.5163 GB, free: 364 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4666, allocations: 0.625 kB / 0.5163 GB, free: 364 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.488e-05/0.4667, allocations: 4 kB / 0.5163 GB, free: 360 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002446/0.4691, allocations: 1.018 MB / 0.5173 GB, free: 15.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.4692, allocations: 14.12 kB / 0.5173 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002005/0.4694, allocations: 76.75 kB / 0.5174 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.4705, allocations: 0.5773 MB / 0.5179 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00019/0.4707, allocations: 117.7 kB / 0.518 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.4708, allocations: 60.5 kB / 0.5181 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.4725, allocations: 0.7689 MB / 0.5188 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.4725, allocations: 4 kB / 0.5188 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.494e-05/0.4726, allocations: 25.84 kB / 0.5189 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001267/0.4727, allocations: 37.83 kB / 0.5189 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.4742, allocations: 0.7137 MB / 0.5196 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004408/0.4786, allocations: 2.615 MB / 0.5222 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001825/0.4805, allocations: 0.8003 MB / 0.5229 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007914/0.4813, allocations: 404.5 kB / 0.5233 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.354e-05/0.4814, allocations: 9.875 kB / 0.5233 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.4814, allocations: 38.41 kB / 0.5234 GB, free: 12.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 2.755e-06/0.4814, allocations: 0 / 0.5234 GB, free: 12.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.004778/0.4862, allocations: 2.156 MB / 0.5255 GB, free: 11.19 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.4863, allocations: 83.67 kB / 0.5256 GB, free: 11.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006129/0.4869, allocations: 401.8 kB / 0.5259 GB, free: 10.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.322e-05/0.487, allocations: 36.27 kB / 0.526 GB, free: 10.87 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003323/0.4873, allocations: 288.3 kB / 0.5262 GB, free: 10.63 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000206/0.4875, allocations: 187.3 kB / 0.5264 GB, free: 10.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000204/0.4877, allocations: 96.81 kB / 0.5265 GB, free: 10.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002088/0.488, allocations: 367.6 kB / 0.5269 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007044/0.4887, allocations: 271.6 kB / 0.5271 GB, free: 10.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008106/0.4895, allocations: 384.5 kB / 0.5275 GB, free: 9.809 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.491, allocations: 0.65 MB / 0.5281 GB, free: 9.484 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.491, allocations: 1.031 kB / 0.5281 GB, free: 9.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002012/0.493, allocations: 0.8756 MB / 0.529 GB, free: 9.074 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.4931, allocations: 7.797 kB / 0.529 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.4931, allocations: 6.875 kB / 0.529 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003035/0.4934, allocations: 77 kB / 0.5291 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001702/0.4951, allocations: 307.8 kB / 0.5294 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007148/0.5023, allocations: 6.528 MB / 0.5357 GB, free: 2.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007189/0.503, allocations: 40.14 kB / 0.5358 GB, free: 2.703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.348e-05/0.5031, allocations: 18.97 kB / 0.5358 GB, free: 2.699 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004749/0.5036, allocations: 246.9 kB / 0.536 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.5037, allocations: 55.61 kB / 0.5361 GB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001668/0.5054, allocations: 0.8219 MB / 0.5369 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.757e-06/0.5054, allocations: 5.875 kB / 0.5369 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.5054, allocations: 1.094 kB / 0.5369 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.5054, allocations: 5.266 kB / 0.5369 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003012/0.5084, allocations: 1.682 MB / 0.5385 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.5085, allocations: 2.75 kB / 0.5385 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001688/0.5102, allocations: 318.1 kB / 0.5389 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002759/0.5104, allocations: 88.25 kB / 0.5389 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/0.5105, allocations: 13.75 kB / 0.5389 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002338/0.5128, allocations: 3.169 MB / 0.542 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.5129, allocations: 5.625 kB / 0.542 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002436/0.5153, allocations: 1.32 MB / 0.5433 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002062/0.5155, allocations: 128.7 kB / 0.5435 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.909e-05/0.5156, allocations: 21.75 kB / 0.5435 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003635/0.516, allocations: 34.14 kB / 0.5435 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.5161, allocations: 45.22 kB / 0.5436 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.97e-05/0.5162, allocations: 14.78 kB / 0.5436 GB, free: 12.42 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004105/0.5166, allocations: 286.7 kB / 0.5438 GB, free: 12.24 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5166, allocations: 0 / 0.5438 GB, free: 12.24 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009056/0.5175, allocations: 146.6 kB / 0.544 GB, free: 12.22 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001932/0.5177, allocations: 116.5 kB / 0.5441 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002897/0.5206, allocations: 1.089 MB / 0.5452 GB, free: 11.49 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.5206, allocations: 1.281 kB / 0.5452 GB, free: 11.49 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002077/0.5227, allocations: 0.8006 MB / 0.5459 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008754/0.5236, allocations: 136.1 kB / 0.5461 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003769/0.5274, allocations: 1.608 MB / 0.5476 GB, free: 9.891 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006511/0.5281, allocations: 0.9392 MB / 0.5486 GB, free: 9.074 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000429/0.5285, allocations: 135.1 kB / 0.5487 GB, free: 9.012 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.5286, allocations: 39.44 kB / 0.5487 GB, free: 9.008 MB / 414.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5287, allocations: 4 kB / 0.5487 GB, free: 9.004 MB / 414.1 MB Notification: Performance of Templates: time 0.01344/0.5421, allocations: 7.943 MB / 0.5565 GB, free: 1.312 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)