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.00106/0.00106, allocations: 111.6 kB / 17.08 MB, free: 5.77 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.001151/0.001151, allocations: 196 kB / 18.02 MB, free: 4.953 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.414/1.414, allocations: 222.9 MB / 241.7 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05285/0.05285, allocations: 8.1 MB / 300 MB, free: 6.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 59.91 kB / 363.2 MB, free: 7.406 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.265/0.2663, allocations: 51.52 MB / 414.7 MB, free: 25.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.005718/0.2721, allocations: 6.661 MB / 421.4 MB, free: 18.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004717/0.2768, allocations: 2.532 MB / 423.9 MB, free: 16.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006371/0.2775, allocations: 20 kB / 423.9 MB, free: 16.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007419/0.2783, allocations: 349.6 kB / 424.3 MB, free: 16.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00149/0.2798, allocations: 0.765 MB / 425 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002281/0.2821, allocations: 1.598 MB / 426.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001334/0.2834, allocations: 1.701 MB / 428.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005695/0.284, allocations: 0.5735 MB / 428.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004697/0.2845, allocations: 0.693 MB / 429.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000695/0.2852, allocations: 0.8289 MB / 430.4 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001768/0.2854, allocations: 176 kB / 430.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006503/0.286, allocations: 435.7 kB / 431 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.2863, allocations: 382.7 kB / 431.4 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004808/0.2868, allocations: 0.7817 MB / 432.2 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001408/0.2882, allocations: 2.092 MB / 434.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2882, allocations: 8 kB / 434.3 MB, free: 5.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2882, allocations: 0 / 434.3 MB, free: 5.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.2882, allocations: 0 / 434.3 MB, free: 5.965 MB / 302.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.01353/0.3018, allocations: 3.685 MB / 437.9 MB, free: 2.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.3018, allocations: 11.89 kB / 438 MB, free: 2.199 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003664/0.3022, allocations: 155.3 kB / 438.1 MB, free: 2.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.3034, allocations: 0.8354 MB / 438.9 MB, free: 1.172 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001607/0.3035, allocations: 316.7 kB / 439.3 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001786/0.3037, allocations: 120.4 kB / 439.4 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002722/0.3065, allocations: 1.8 MB / 441.2 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.429e-05/0.3065, allocations: 3.938 kB / 441.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001454/0.3066, allocations: 52 kB / 441.2 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.543e-05/0.3067, allocations: 28 kB / 441.3 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002783/0.3095, allocations: 1.703 MB / 443 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009781/0.3193, allocations: 6.946 MB / 449.9 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003904/0.3232, allocations: 3.859 MB / 453.8 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/0.3248, allocations: 1.184 MB / 454.9 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001754/0.325, allocations: 41.2 kB / 455 MB, free: 180 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002306/0.3273, allocations: 1.334 MB / 456.3 MB, free: 14.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=167): time 5.611e-06/0.3274, allocations: 0 / 456.3 MB, free: 14.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=167): time 0.03286/0.3602, allocations: 8.965 MB / 465.3 MB, free: 5.824 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.401e-05/0.3603, allocations: 128.8 kB / 465.4 MB, free: 5.672 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.3615, allocations: 0.7269 MB / 466.1 MB, free: 4.938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002699/0.3618, allocations: 73.69 kB / 466.2 MB, free: 4.859 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003505/0.3621, allocations: 425.5 kB / 466.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005277/0.3627, allocations: 0.5391 MB / 467.2 MB, free: 3.887 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006386/0.3633, allocations: 339.5 kB / 467.5 MB, free: 3.551 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3635, allocations: 341.9 kB / 467.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001756/0.3653, allocations: 1.117 MB / 468.9 MB, free: 2.094 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001936/0.3672, allocations: 1.277 MB / 470.2 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003655/0.3709, allocations: 2.396 MB / 472.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.3709, allocations: 3.938 kB / 472.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.007189/0.3781, allocations: 3.721 MB / 476.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/0.3781, allocations: 11.98 kB / 476.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.3782, allocations: 0 / 476.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01462/0.3928, allocations: 5.325 MB / 481.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.3939, allocations: 251.6 kB / 481.9 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007047/0.401, allocations: 3.436 MB / 485.4 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.4027, allocations: 188.8 kB / 485.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001714/0.4029, allocations: 59.98 kB / 485.6 MB, free: 1.363 MB / 350.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.0007461/0.4037, allocations: 352.9 kB / 486 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002674/0.4039, allocations: 122.5 kB / 486.1 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005457/0.4094, allocations: 3.357 MB / 489.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.648e-05/0.4094, allocations: 20 kB / 489.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.4095, allocations: 0 / 489.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.4095, allocations: 7.969 kB / 489.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007942/0.4174, allocations: 5.698 MB / 495.2 MB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.4175, allocations: 4 kB / 495.2 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005023/0.418, allocations: 151.8 kB / 495.3 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01288/0.4309, allocations: 3.792 MB / 499.1 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003992/0.4313, allocations: 39.98 kB / 499.1 MB, free: 3.734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007132/0.4384, allocations: 3.505 MB / 0.4909 GB, free: 212 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.4385, allocations: 0 / 0.4909 GB, free: 212 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005163/0.4436, allocations: 3.235 MB / 0.494 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004446/0.4441, allocations: 211.2 kB / 0.4942 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002071/0.4443, allocations: 36 kB / 0.4943 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/0.4456, allocations: 119 kB / 0.4944 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002876/0.4459, allocations: 117.8 kB / 0.4945 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001551/0.4461, allocations: 59.98 kB / 0.4945 GB, free: 12.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006923/0.4468, allocations: 499 kB / 0.495 GB, free: 11.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4468, allocations: 0 / 0.495 GB, free: 11.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001104/0.4479, allocations: 451.5 kB / 0.4954 GB, free: 11.47 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.000373/0.4483, allocations: 194.3 kB / 0.4956 GB, free: 11.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007563/0.4558, allocations: 3.187 MB / 0.4987 GB, free: 8.086 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/0.4559, allocations: 5.688 kB / 0.4987 GB, free: 8.082 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005237/0.4611, allocations: 1.862 MB / 0.5006 GB, free: 6.223 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.4622, allocations: 162.8 kB / 0.5007 GB, free: 6.059 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004454/0.4667, allocations: 2.594 MB / 0.5033 GB, free: 3.449 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000683/0.4674, allocations: 1.085 MB / 0.5043 GB, free: 2.332 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005635/0.468, allocations: 161 kB / 0.5045 GB, free: 2.172 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002357/0.4682, allocations: 95.41 kB / 0.5046 GB, free: 2.078 MB / 382.1 MB Notification: Performance of SimCode: time 1.462e-06/0.4682, allocations: 0 / 0.5046 GB, free: 2.078 MB / 382.1 MB Notification: Performance of Templates: time 0.2287/0.6969, allocations: 30.57 MB / 0.5344 GB, free: 75.24 MB / 382.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 -s cvode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.pipe 2>&1)