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.001744/0.001744, allocations: 107.6 kB / 16.45 MB, free: 6.457 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.001872/0.001872, allocations: 182.4 kB / 17.38 MB, free: 5.672 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.369/1.369, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04845/0.04845, allocations: 8.095 MB / 299.3 MB, free: 6.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 67.91 kB / 414.5 MB, free: 21.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09647/0.09762, allocations: 51.52 MB / 466 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.006852/0.1045, allocations: 6.657 MB / 472.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004944/0.1095, allocations: 2.532 MB / 475.2 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.1107, allocations: 20 kB / 475.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.1119, allocations: 353.6 kB / 475.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002532/0.1145, allocations: 0.7689 MB / 476.3 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003111/0.1176, allocations: 1.588 MB / 477.9 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002486/0.1201, allocations: 1.705 MB / 479.6 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008449/0.121, allocations: 0.5696 MB / 480.2 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001064/0.122, allocations: 0.693 MB / 480.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001155/0.1232, allocations: 0.8327 MB / 481.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002232/0.1234, allocations: 176 kB / 481.9 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008535/0.1243, allocations: 447.7 kB / 482.3 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002906/0.1246, allocations: 378.8 kB / 482.7 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007343/0.1253, allocations: 0.7855 MB / 483.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002354/0.1277, allocations: 2.087 MB / 485.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1277, allocations: 0 / 485.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1277, allocations: 4 kB / 485.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.318e-05/0.1277, allocations: 0 / 485.6 MB, free: 14.47 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.01506/0.1428, allocations: 3.725 MB / 489.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.1429, allocations: 8.031 kB / 489.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003516/0.1432, allocations: 168 kB / 489.5 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.1445, allocations: 0.8398 MB / 490.3 MB, free: 9.629 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/0.1447, allocations: 320.6 kB / 490.6 MB, free: 9.266 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001887/0.1449, allocations: 116.4 kB / 490.7 MB, free: 9.152 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002906/0.1478, allocations: 1.8 MB / 492.5 MB, free: 7.309 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.1478, allocations: 3.938 kB / 492.5 MB, free: 7.305 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001452/0.148, allocations: 55.98 kB / 492.6 MB, free: 7.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.742e-05/0.148, allocations: 27.94 kB / 492.6 MB, free: 7.223 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002655/0.1507, allocations: 1.707 MB / 494.3 MB, free: 5.508 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009442/0.1601, allocations: 6.954 MB / 0.4895 GB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003617/0.1638, allocations: 3.867 MB / 0.4933 GB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001619/0.1654, allocations: 1.184 MB / 0.4945 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001678/0.1656, allocations: 45.2 kB / 0.4945 GB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002069/0.1677, allocations: 1.318 MB / 0.4958 GB, free: 7.273 MB / 382.1 MB Notification: Performance of pre-optimization done (n=167): time 3.347e-06/0.1677, allocations: 0 / 0.4958 GB, free: 7.273 MB / 382.1 MB Notification: Performance of matching and sorting (n=167): time 0.2526/0.4203, allocations: 8.975 MB / 0.5046 GB, free: 45.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.2e-05/0.4205, allocations: 125.5 kB / 0.5047 GB, free: 45.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.4216, allocations: 0.725 MB / 0.5054 GB, free: 45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002396/0.4219, allocations: 71.97 kB / 0.5055 GB, free: 44.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000289/0.4222, allocations: 432.9 kB / 0.5059 GB, free: 44.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004094/0.4226, allocations: 0.5612 MB / 0.5064 GB, free: 44.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006038/0.4232, allocations: 340.5 kB / 0.5067 GB, free: 44.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.956e-05/0.4233, allocations: 346 kB / 0.5071 GB, free: 43.94 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001606/0.4249, allocations: 1.114 MB / 0.5082 GB, free: 43.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001845/0.4267, allocations: 1.274 MB / 0.5094 GB, free: 42.76 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003314/0.4301, allocations: 2.4 MB / 0.5118 GB, free: 41.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.4301, allocations: 0 / 0.5118 GB, free: 41.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006849/0.4369, allocations: 3.731 MB / 0.5154 GB, free: 39.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.437, allocations: 5.297 kB / 0.5154 GB, free: 39.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.437, allocations: 4.188 kB / 0.5154 GB, free: 39.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01408/0.4511, allocations: 5.331 MB / 0.5206 GB, free: 39.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.4522, allocations: 250.5 kB / 0.5208 GB, free: 39.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006084/0.4583, allocations: 3.438 MB / 0.5242 GB, free: 37.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00131/0.4596, allocations: 180.2 kB / 0.5244 GB, free: 36.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001448/0.4598, allocations: 63.09 kB / 0.5244 GB, free: 36.97 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.0005467/0.4603, allocations: 342.9 kB / 0.5248 GB, free: 36.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002065/0.4605, allocations: 130.1 kB / 0.5249 GB, free: 36.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004571/0.4651, allocations: 3.362 MB / 0.5282 GB, free: 34.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.4651, allocations: 16 kB / 0.5282 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.4651, allocations: 0.6562 kB / 0.5282 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.837e-05/0.4652, allocations: 8.672 kB / 0.5282 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00607/0.4712, allocations: 5.703 MB / 0.5338 GB, free: 29.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.4713, allocations: 7.391 kB / 0.5338 GB, free: 29.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004567/0.4717, allocations: 149.2 kB / 0.5339 GB, free: 29.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01215/0.4839, allocations: 3.792 MB / 0.5376 GB, free: 25.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003463/0.4843, allocations: 35.98 kB / 0.5377 GB, free: 25.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00613/0.4904, allocations: 3.508 MB / 0.5411 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.4905, allocations: 0 / 0.5411 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004126/0.4946, allocations: 3.238 MB / 0.5442 GB, free: 18.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002955/0.4949, allocations: 223.9 kB / 0.5445 GB, free: 18.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001927/0.4951, allocations: 39.98 kB / 0.5445 GB, free: 18.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.4964, allocations: 116.8 kB / 0.5446 GB, free: 18.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002617/0.4967, allocations: 117.8 kB / 0.5447 GB, free: 18.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/0.4968, allocations: 59.98 kB / 0.5448 GB, free: 18.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006073/0.4974, allocations: 495 kB / 0.5452 GB, free: 17.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4974, allocations: 0 / 0.5452 GB, free: 17.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009493/0.4984, allocations: 459.2 kB / 0.5457 GB, free: 17.21 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.0002953/0.4987, allocations: 175.5 kB / 0.5459 GB, free: 17.03 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0065/0.5052, allocations: 3.196 MB / 0.549 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.5052, allocations: 1.688 kB / 0.549 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004834/0.5101, allocations: 1.87 MB / 0.5508 GB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009529/0.511, allocations: 160.9 kB / 0.551 GB, free: 11.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00364/0.5147, allocations: 2.64 MB / 0.5535 GB, free: 9.191 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/0.515, allocations: 1.092 MB / 0.5546 GB, free: 8.066 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004882/0.5155, allocations: 145 kB / 0.5547 GB, free: 7.922 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002069/0.5158, allocations: 95.95 kB / 0.5548 GB, free: 7.828 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5158, allocations: 0 / 0.5548 GB, free: 7.828 MB / 382.1 MB Notification: Performance of Templates: time 0.04282/0.5586, allocations: 31 MB / 0.5851 GB, free: 8.992 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)