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-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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.001495/0.001495, allocations: 112.6 kB / 17.13 MB, free: 5.938 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.00178/0.00178, allocations: 199 kB / 18.06 MB, free: 5.023 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.429/1.429, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04483/0.04483, allocations: 8.108 MB / 300 MB, free: 6.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 63.89 kB / 415.2 MB, free: 21.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09258/0.09382, allocations: 51.52 MB / 466.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.00707/0.1009, allocations: 6.649 MB / 473.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004086/0.105, allocations: 2.548 MB / 475.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006473/0.1057, allocations: 20 kB / 475.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007611/0.1065, allocations: 353.6 kB / 476.2 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001682/0.1082, allocations: 0.7609 MB / 477 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00281/0.111, allocations: 1.59 MB / 478.6 MB, free: 6.191 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001775/0.1128, allocations: 1.705 MB / 480.3 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007016/0.1135, allocations: 0.5735 MB / 480.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006607/0.1142, allocations: 0.6891 MB / 481.6 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008723/0.1151, allocations: 0.8366 MB / 482.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002279/0.1153, allocations: 176 kB / 482.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008249/0.1161, allocations: 447.6 kB / 483 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003/0.1165, allocations: 370.8 kB / 483.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006821/0.1172, allocations: 0.7933 MB / 484.2 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002036/0.1192, allocations: 2.092 MB / 486.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.1192, allocations: 0 / 486.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1192, allocations: 3.938 kB / 486.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.523e-05/0.1192, allocations: 0 / 486.3 MB, free: 14.48 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.01572/0.135, allocations: 3.67 MB / 489.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.135, allocations: 15.89 kB / 489.9 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004906/0.1355, allocations: 159.2 kB / 490.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001399/0.1369, allocations: 0.8394 MB / 490.9 MB, free: 9.695 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002013/0.1372, allocations: 320.7 kB / 491.3 MB, free: 9.332 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002603/0.1374, allocations: 116.4 kB / 491.4 MB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002989/0.1404, allocations: 1.804 MB / 493.2 MB, free: 7.371 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.1405, allocations: 3.938 kB / 493.2 MB, free: 7.367 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001591/0.1406, allocations: 51.98 kB / 493.2 MB, free: 7.316 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.04e-05/0.1407, allocations: 24 kB / 493.2 MB, free: 7.293 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002728/0.1434, allocations: 1.707 MB / 495 MB, free: 5.578 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009491/0.1529, allocations: 6.938 MB / 0.4901 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004023/0.1569, allocations: 3.87 MB / 0.4939 GB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001709/0.1587, allocations: 1.184 MB / 0.4951 GB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000162/0.1588, allocations: 37.2 kB / 0.4951 GB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002122/0.161, allocations: 1.326 MB / 0.4964 GB, free: 7.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=167): time 4.248e-06/0.161, allocations: 0 / 0.4964 GB, free: 7.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=167): time 0.3197/0.4807, allocations: 8.968 MB / 0.5052 GB, free: 45.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.379e-05/0.4808, allocations: 121.8 kB / 0.5053 GB, free: 44.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001809/0.4826, allocations: 0.7234 MB / 0.506 GB, free: 44.78 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003644/0.483, allocations: 74.42 kB / 0.506 GB, free: 44.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004042/0.4835, allocations: 421.4 kB / 0.5064 GB, free: 44.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006373/0.4841, allocations: 0.5354 MB / 0.507 GB, free: 44.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009463/0.4851, allocations: 336.5 kB / 0.5073 GB, free: 44.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.836e-05/0.4852, allocations: 351.8 kB / 0.5076 GB, free: 43.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002891/0.4881, allocations: 1.112 MB / 0.5087 GB, free: 43.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003345/0.4914, allocations: 1.271 MB / 0.51 GB, free: 42.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006465/0.4979, allocations: 2.403 MB / 0.5123 GB, free: 41.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.828e-06/0.498, allocations: 0 / 0.5123 GB, free: 41.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.01281/0.5108, allocations: 3.727 MB / 0.5159 GB, free: 39.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.233e-05/0.5109, allocations: 6.219 kB / 0.5159 GB, free: 39.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.5109, allocations: 3.078 kB / 0.5159 GB, free: 39.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02863/0.5396, allocations: 5.325 MB / 0.5211 GB, free: 38.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001894/0.5415, allocations: 256.1 kB / 0.5214 GB, free: 38.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01191/0.5535, allocations: 3.43 MB / 0.5247 GB, free: 36.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002714/0.5562, allocations: 184.5 kB / 0.5249 GB, free: 36.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003937/0.5566, allocations: 62.61 kB / 0.525 GB, free: 36.77 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.00118/0.5579, allocations: 348.1 kB / 0.5253 GB, free: 36.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005672/0.5584, allocations: 123.7 kB / 0.5254 GB, free: 36.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008816/0.5673, allocations: 3.357 MB / 0.5287 GB, free: 34.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.452e-05/0.5674, allocations: 16.66 kB / 0.5287 GB, free: 34.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.5674, allocations: 4 kB / 0.5287 GB, free: 34.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.145e-05/0.5674, allocations: 9.703 kB / 0.5287 GB, free: 34.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01259/0.58, allocations: 5.71 MB / 0.5343 GB, free: 29.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/0.5801, allocations: 0 / 0.5343 GB, free: 29.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008561/0.581, allocations: 145.4 kB / 0.5345 GB, free: 28.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02039/0.6014, allocations: 3.786 MB / 0.5381 GB, free: 25.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003585/0.6018, allocations: 43.94 kB / 0.5382 GB, free: 25.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01091/0.6127, allocations: 3.497 MB / 0.5416 GB, free: 21.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.6127, allocations: 7.5 kB / 0.5416 GB, free: 21.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007799/0.6206, allocations: 3.228 MB / 0.5448 GB, free: 18.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004452/0.621, allocations: 227.1 kB / 0.545 GB, free: 18.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004134/0.6215, allocations: 32 kB / 0.545 GB, free: 18.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002382/0.6239, allocations: 122.7 kB / 0.5451 GB, free: 18.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004102/0.6243, allocations: 121.8 kB / 0.5452 GB, free: 18.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002466/0.6246, allocations: 56 kB / 0.5453 GB, free: 17.97 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009302/0.6255, allocations: 495 kB / 0.5458 GB, free: 17.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6255, allocations: 0 / 0.5458 GB, free: 17.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001622/0.6272, allocations: 458.7 kB / 0.5462 GB, free: 17.04 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.0005048/0.6277, allocations: 191.3 kB / 0.5464 GB, free: 16.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007971/0.6357, allocations: 3.18 MB / 0.5495 GB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.6357, allocations: 5.688 kB / 0.5495 GB, free: 13.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004968/0.6407, allocations: 1.858 MB / 0.5513 GB, free: 11.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009623/0.6416, allocations: 167.2 kB / 0.5515 GB, free: 11.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003603/0.6453, allocations: 2.639 MB / 0.5541 GB, free: 9.023 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.6456, allocations: 1.09 MB / 0.5551 GB, free: 7.902 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002665/0.6459, allocations: 103.4 kB / 0.5552 GB, free: 7.801 MB / 382.1 MB Notification: Performance of SimCode: time 8.71e-07/0.6459, allocations: 0 / 0.5552 GB, free: 7.801 MB / 382.1 MB Notification: Performance of Templates: time 0.02774/0.6737, allocations: 24.79 MB / 0.5794 GB, free: 15.05 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)