Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001748/0.001748, allocations: 113.5 kB / 17.06 MB, free: 5.992 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.002098/0.002098, allocations: 200 kB / 18.01 MB, free: 5.066 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.478/1.478, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1742/0.1742, allocations: 38.03 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 59.91 kB / 458.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4131/0.4146, allocations: 58.07 MB / 0.5041 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005738/0.4204, allocations: 4.056 MB / 0.5081 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001589/0.422, allocations: 0.9162 MB / 0.509 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.4222, allocations: 11.44 kB / 0.509 GB, free: 4.309 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002315/0.4225, allocations: 45.72 kB / 0.509 GB, free: 4.281 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005482/0.423, allocations: 185.1 kB / 0.5092 GB, free: 4.168 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002505/0.4233, allocations: 88.14 kB / 0.5093 GB, free: 4.125 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005905/0.4239, allocations: 401.3 kB / 0.5097 GB, free: 3.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003309/0.4242, allocations: 114.5 kB / 0.5098 GB, free: 3.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003024/0.4246, allocations: 180.5 kB / 0.5099 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003792/0.4249, allocations: 186.2 kB / 0.5101 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.215e-05/0.425, allocations: 19.41 kB / 0.5101 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.958e-05/0.4251, allocations: 19.69 kB / 0.5102 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.4252, allocations: 87.42 kB / 0.5102 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001713/0.4254, allocations: 140.2 kB / 0.5104 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004713/0.4259, allocations: 291.9 kB / 0.5106 GB, free: 3.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4259, allocations: 0 / 0.5106 GB, free: 3.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.447e-06/0.4259, allocations: 0 / 0.5106 GB, free: 3.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.4259, allocations: 5.094 kB / 0.5107 GB, free: 3.508 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001088/0.427, allocations: 0.6027 MB / 0.5112 GB, free: 3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.4271, allocations: 12.89 kB / 0.5113 GB, free: 2.996 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.007e-05/0.4271, allocations: 37.44 kB / 0.5113 GB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005347/0.4277, allocations: 342.8 kB / 0.5116 GB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.088e-05/0.4277, allocations: 17.44 kB / 0.5116 GB, free: 2.695 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.824e-05/0.4278, allocations: 25.45 kB / 0.5117 GB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005265/0.4283, allocations: 291.7 kB / 0.5119 GB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.4284, allocations: 0 / 0.5119 GB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.88e-05/0.4284, allocations: 11.44 kB / 0.5119 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.4284, allocations: 5.438 kB / 0.512 GB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003395/0.4288, allocations: 185.9 kB / 0.5121 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001263/0.43, allocations: 1.226 MB / 0.5133 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003061/0.4303, allocations: 102 kB / 0.5134 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.785e-05/0.4304, allocations: 52.28 kB / 0.5135 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.4305, allocations: 1.094 kB / 0.5135 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.4305, allocations: 40.38 kB / 0.5135 GB, free: 1.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.362e-06/0.4305, allocations: 1.281 kB / 0.5135 GB, free: 1.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008388/0.4313, allocations: 493 kB / 0.514 GB, free: 0.875 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.779e-05/0.4314, allocations: 84.25 kB / 0.5141 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003011/0.4317, allocations: 251.3 kB / 0.5143 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.4317, allocations: 26.7 kB / 0.5143 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.4319, allocations: 202.6 kB / 0.5145 GB, free: 436 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.636e-05/0.4319, allocations: 46.09 kB / 0.5146 GB, free: 400 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.847e-05/0.432, allocations: 39.98 kB / 0.5146 GB, free: 372 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.736e-05/0.4321, allocations: 344.3 kB / 0.5149 GB, free: 32 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.846e-05/0.4321, allocations: 43.75 kB / 0.515 GB, free: 12 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/0.4323, allocations: 123.5 kB / 0.5151 GB, free: 15.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002341/0.4325, allocations: 194.1 kB / 0.5153 GB, free: 15.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.4326, allocations: 1.031 kB / 0.5153 GB, free: 15.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003222/0.4329, allocations: 210.2 kB / 0.5155 GB, free: 15.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.4329, allocations: 7.219 kB / 0.5155 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.4329, allocations: 3.359 kB / 0.5155 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.4329, allocations: 4.75 kB / 0.5155 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001659/0.4331, allocations: 48.48 kB / 0.5155 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.738e-05/0.4331, allocations: 17.38 kB / 0.5156 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.4333, allocations: 12.62 kB / 0.5156 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.873e-05/0.4333, allocations: 9.812 kB / 0.5156 GB, free: 15.57 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000139/0.4334, allocations: 150 kB / 0.5157 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.394e-05/0.4335, allocations: 20.98 kB / 0.5157 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002638/0.4338, allocations: 130.4 kB / 0.5159 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.4338, allocations: 2.031 kB / 0.5159 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.4338, allocations: 1.953 kB / 0.5159 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.4338, allocations: 12.58 kB / 0.5159 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005562/0.4344, allocations: 473.7 kB / 0.5163 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.4344, allocations: 1.219 kB / 0.5163 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001284/0.4345, allocations: 25.41 kB / 0.5164 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.4345, allocations: 1.219 kB / 0.5164 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.4345, allocations: 9.953 kB / 0.5164 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.4345, allocations: 1.344 kB / 0.5164 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4345, allocations: 1.312 kB / 0.5164 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003376/0.4349, allocations: 279.5 kB / 0.5166 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.318e-05/0.435, allocations: 104.7 kB / 0.5167 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.256e-05/0.435, allocations: 6.828 kB / 0.5167 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.884e-05/0.4351, allocations: 5.125 kB / 0.5168 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.201e-05/0.4351, allocations: 11.41 kB / 0.5168 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.4352, allocations: 7.531 kB / 0.5168 GB, free: 14.61 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001656/0.4353, allocations: 177.2 kB / 0.5169 GB, free: 14.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4353, allocations: 0 / 0.5169 GB, free: 14.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003125/0.4357, allocations: 43.66 kB / 0.517 GB, free: 14.5 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001073/0.4358, allocations: 99.22 kB / 0.5171 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002527/0.436, allocations: 114.9 kB / 0.5172 GB, free: 14.37 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.436, allocations: 4.25 kB / 0.5172 GB, free: 14.37 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.526e-05/0.4361, allocations: 43.78 kB / 0.5172 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004942/0.4366, allocations: 62.47 kB / 0.5173 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.4377, allocations: 0.5341 MB / 0.5178 GB, free: 13.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003688/0.438, allocations: 0.7761 MB / 0.5186 GB, free: 13.28 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001159/0.4382, allocations: 37.16 kB / 0.5186 GB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.036e-05/0.4382, allocations: 20.77 kB / 0.5186 GB, free: 13.26 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4382, allocations: 0 / 0.5186 GB, free: 13.26 MB / 398.1 MB Notification: Performance of Templates: time 0.00622/0.4444, allocations: 2.021 MB / 0.5206 GB, free: 13.07 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)