Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.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/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads") translateModel(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 109.6 kB / 16.45 MB, free: 6.395 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.001314/0.001314, allocations: 189 kB / 17.38 MB, free: 5.648 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.499/1.499, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05615/0.05615, allocations: 8.104 MB / 299.3 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 63.91 kB / 414.5 MB, free: 21.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1097, allocations: 51.52 MB / 466 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.007517/0.1173, allocations: 6.672 MB / 472.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004714/0.122, allocations: 2.536 MB / 475.2 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00115/0.1232, allocations: 20 kB / 475.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.1244, allocations: 349.6 kB / 475.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00199/0.1264, allocations: 0.7687 MB / 476.3 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002851/0.1292, allocations: 1.587 MB / 477.9 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001937/0.1312, allocations: 1.717 MB / 479.6 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000742/0.1319, allocations: 0.5696 MB / 480.2 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009233/0.1329, allocations: 0.6852 MB / 480.9 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001015/0.1339, allocations: 0.8366 MB / 481.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002053/0.1341, allocations: 176 kB / 481.9 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007974/0.1349, allocations: 443.8 kB / 482.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002855/0.1352, allocations: 374.8 kB / 482.7 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007388/0.136, allocations: 0.7855 MB / 483.5 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00228/0.1382, allocations: 2.084 MB / 485.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1383, allocations: 0 / 485.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.218e-06/0.1383, allocations: 0 / 485.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.321e-05/0.1383, allocations: 7.938 kB / 485.6 MB, free: 14.61 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 262 * Number of variables: 262 Notification: Performance of Generate backend data structure: time 0.01489/0.1532, allocations: 3.681 MB / 489.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1533, allocations: 8.031 kB / 489.3 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005595/0.1538, allocations: 163.2 kB / 489.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001514/0.1554, allocations: 0.8316 MB / 490.3 MB, free: 9.824 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002233/0.1556, allocations: 316.7 kB / 490.6 MB, free: 9.465 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003456/0.156, allocations: 120.4 kB / 490.7 MB, free: 9.348 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003325/0.1593, allocations: 1.804 MB / 492.5 MB, free: 7.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.64e-05/0.1593, allocations: 7.875 kB / 492.5 MB, free: 7.492 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00017/0.1595, allocations: 52 kB / 492.5 MB, free: 7.441 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.011e-05/0.1595, allocations: 24 kB / 492.6 MB, free: 7.418 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002887/0.1624, allocations: 1.707 MB / 494.3 MB, free: 5.703 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01054/0.173, allocations: 6.934 MB / 0.4895 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003871/0.1769, allocations: 3.882 MB / 0.4933 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001893/0.1788, allocations: 1.184 MB / 0.4944 GB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002475/0.1791, allocations: 41.2 kB / 0.4945 GB, free: 8.805 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002433/0.1815, allocations: 1.314 MB / 0.4957 GB, free: 7.477 MB / 382.1 MB Notification: Performance of pre-optimization done (n=167): time 3.777e-06/0.1815, allocations: 0 / 0.4957 GB, free: 7.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=167): time 0.2914/0.4729, allocations: 8.974 MB / 0.5045 GB, free: 45.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/0.473, allocations: 121.6 kB / 0.5046 GB, free: 44.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.4741, allocations: 0.7251 MB / 0.5053 GB, free: 44.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002798/0.4744, allocations: 74.84 kB / 0.5054 GB, free: 44.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002711/0.4747, allocations: 419.3 kB / 0.5058 GB, free: 44.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004119/0.4751, allocations: 0.538 MB / 0.5063 GB, free: 44.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006189/0.4758, allocations: 335.7 kB / 0.5066 GB, free: 44.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.726e-05/0.4759, allocations: 352.5 kB / 0.507 GB, free: 43.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001676/0.4775, allocations: 1.107 MB / 0.5081 GB, free: 43.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001923/0.4795, allocations: 1.272 MB / 0.5093 GB, free: 42.58 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003771/0.4832, allocations: 2.402 MB / 0.5116 GB, free: 41.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.4833, allocations: 2.812 kB / 0.5116 GB, free: 41.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.007383/0.4907, allocations: 3.727 MB / 0.5153 GB, free: 39.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.4907, allocations: 6.094 kB / 0.5153 GB, free: 39.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.4907, allocations: 1.719 kB / 0.5153 GB, free: 39.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01612/0.5069, allocations: 5.327 MB / 0.5205 GB, free: 38.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/0.5081, allocations: 247.8 kB / 0.5207 GB, free: 38.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006214/0.5144, allocations: 3.43 MB / 0.5241 GB, free: 36.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/0.5158, allocations: 189 kB / 0.5243 GB, free: 36.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001672/0.516, allocations: 62.52 kB / 0.5243 GB, free: 36.79 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 24 (feeder1.load4.degradedMode,$PRE.feeder1.load4.degradedMode,feeder1.load3.degradedMode,$PRE.feeder1.load3.degradedMode,feeder1.load2.degradedMode,$PRE.feeder1.load2.degradedMode,feeder1.load1.degradedMode,$PRE.feeder1.load1.degradedMode,feeder2.load4.degradedMode,$PRE.feeder2.load4.degradedMode,feeder2.load3.degradedMode,$PRE.feeder2.load3.degradedMode,feeder2.load2.degradedMode,$PRE.feeder2.load2.degradedMode,feeder2.load1.degradedMode,$PRE.feeder2.load1.degradedMode,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 162 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(40,44)} Notification: Performance of prepare postOptimizeDAE: time 0.0006946/0.5167, allocations: 338.6 kB / 0.5246 GB, free: 36.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002561/0.517, allocations: 122.3 kB / 0.5248 GB, free: 36.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004595/0.5216, allocations: 3.363 MB / 0.528 GB, free: 34.17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.5216, allocations: 20 kB / 0.5281 GB, free: 34.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.5216, allocations: 0 / 0.5281 GB, free: 34.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.979e-05/0.5217, allocations: 9.281 kB / 0.5281 GB, free: 34.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005989/0.5276, allocations: 5.704 MB / 0.5336 GB, free: 29.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.5277, allocations: 0 / 0.5336 GB, free: 29.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004273/0.5281, allocations: 151.3 kB / 0.5338 GB, free: 29.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01123/0.5393, allocations: 3.785 MB / 0.5375 GB, free: 25.44 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002243/0.5396, allocations: 39.98 kB / 0.5375 GB, free: 25.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005629/0.5452, allocations: 3.503 MB / 0.5409 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.5452, allocations: 4 kB / 0.5409 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004063/0.5493, allocations: 3.226 MB / 0.5441 GB, free: 18.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003064/0.5496, allocations: 227.1 kB / 0.5443 GB, free: 18.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001781/0.5498, allocations: 37.67 kB / 0.5444 GB, free: 18.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.551, allocations: 113.4 kB / 0.5445 GB, free: 18.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002764/0.5513, allocations: 113.8 kB / 0.5446 GB, free: 18.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001414/0.5515, allocations: 63.98 kB / 0.5446 GB, free: 18.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006374/0.5521, allocations: 495 kB / 0.5451 GB, free: 17.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5521, allocations: 0 / 0.5451 GB, free: 17.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001116/0.5533, allocations: 451.6 kB / 0.5455 GB, free: 17.14 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,feeder2.load1.degradedMode,feeder2.load2.degradedMode,feeder2.load3.degradedMode,feeder2.load4.degradedMode,feeder1.load1.degradedMode,feeder1.load2.degradedMode,feeder1.load3.degradedMode,feeder1.load4.degradedMode) * Number of discrete states: 8 (feeder1.load2.degradedMode,feeder1.load3.degradedMode,feeder1.load1.degradedMode,feeder2.load2.degradedMode,feeder2.load3.degradedMode,feeder2.load1.degradedMode,feeder2.load4.degradedMode,feeder1.load4.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(42,50)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003572/0.5536, allocations: 194.2 kB / 0.5457 GB, free: 16.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006223/0.5598, allocations: 3.176 MB / 0.5488 GB, free: 13.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.5599, allocations: 5.688 kB / 0.5488 GB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004538/0.5644, allocations: 1.861 MB / 0.5506 GB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009853/0.5654, allocations: 171.4 kB / 0.5508 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004305/0.5697, allocations: 2.6 MB / 0.5533 GB, free: 9.172 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006898/0.5704, allocations: 1.085 MB / 0.5544 GB, free: 8.055 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006403/0.5711, allocations: 154.5 kB / 0.5546 GB, free: 7.902 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002206/0.5713, allocations: 91.41 kB / 0.5546 GB, free: 7.812 MB / 382.1 MB Notification: Performance of SimCode: time 1.422e-06/0.5713, allocations: 0 / 0.5546 GB, free: 7.812 MB / 382.1 MB Notification: Performance of Templates: time 0.04302/0.6144, allocations: 31 MB / 0.5849 GB, free: 8.973 MB / 414.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.makefile (rm -f PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.sim & ./PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.pipe 2>&1)