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.001105/0.001105, allocations: 110.4 kB / 17.08 MB, free: 5.773 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.001173/0.001174, allocations: 195 kB / 18.03 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.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04551/0.04551, allocations: 8.084 MB / 300 MB, free: 6.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 63.91 kB / 363.2 MB, free: 7.414 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2368, allocations: 51.52 MB / 414.7 MB, free: 25.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.005928/0.2427, allocations: 6.653 MB / 421.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003768/0.2465, allocations: 2.54 MB / 423.9 MB, free: 16.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009037/0.2475, allocations: 20 kB / 423.9 MB, free: 16.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008602/0.2484, allocations: 349.6 kB / 424.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001801/0.2502, allocations: 0.7689 MB / 425 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002339/0.2525, allocations: 1.592 MB / 426.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001579/0.2541, allocations: 1.701 MB / 428.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005862/0.2547, allocations: 0.5774 MB / 428.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005207/0.2552, allocations: 0.6891 MB / 429.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006516/0.2559, allocations: 0.825 MB / 430.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001612/0.2561, allocations: 176 kB / 430.6 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006988/0.2568, allocations: 447.7 kB / 431 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002435/0.257, allocations: 374.8 kB / 431.4 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005657/0.2576, allocations: 0.7894 MB / 432.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001519/0.2591, allocations: 2.088 MB / 434.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2591, allocations: 0 / 434.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2591, allocations: 0 / 434.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.639e-05/0.2592, allocations: 0 / 434.3 MB, free: 5.816 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.01433/0.2735, allocations: 3.685 MB / 437.9 MB, free: 2.062 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.2736, allocations: 11.89 kB / 438 MB, free: 2.051 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003223/0.2739, allocations: 155.3 kB / 438.1 MB, free: 1.898 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001059/0.275, allocations: 0.8355 MB / 438.9 MB, free: 1.023 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/0.2751, allocations: 316.7 kB / 439.3 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001723/0.2753, allocations: 116.4 kB / 439.4 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002674/0.2779, allocations: 1.8 MB / 441.2 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.278, allocations: 11.92 kB / 441.2 MB, free: 14.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001526/0.2781, allocations: 55.98 kB / 441.2 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.963e-05/0.2782, allocations: 24 kB / 441.3 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002637/0.2808, allocations: 1.703 MB / 443 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00939/0.2902, allocations: 6.946 MB / 449.9 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003871/0.2941, allocations: 3.867 MB / 453.8 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001745/0.2959, allocations: 1.176 MB / 455 MB, free: 64 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001887/0.2961, allocations: 41.2 kB / 455 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002057/0.2982, allocations: 1.326 MB / 456.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=167): time 3.567e-06/0.2982, allocations: 0 / 456.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=167): time 0.03253/0.3307, allocations: 8.969 MB / 465.3 MB, free: 5.676 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.134e-05/0.3308, allocations: 128.8 kB / 465.4 MB, free: 5.523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.3319, allocations: 0.7152 MB / 466.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002362/0.3321, allocations: 81.69 kB / 466.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002948/0.3324, allocations: 425.5 kB / 466.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000448/0.3329, allocations: 0.5352 MB / 467.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000615/0.3335, allocations: 339.5 kB / 467.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.3336, allocations: 353.9 kB / 467.8 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001719/0.3353, allocations: 1.109 MB / 468.9 MB, free: 1.949 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001898/0.3372, allocations: 1.273 MB / 470.2 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003668/0.3409, allocations: 2.404 MB / 472.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.341, allocations: 0 / 472.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00688/0.3478, allocations: 3.725 MB / 476.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.3479, allocations: 8 kB / 476.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.3479, allocations: 4 kB / 476.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01439/0.3623, allocations: 5.321 MB / 481.7 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.3634, allocations: 247.6 kB / 481.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006869/0.3703, allocations: 3.44 MB / 485.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/0.3719, allocations: 188.7 kB / 485.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001634/0.3721, allocations: 67.97 kB / 485.6 MB, free: 1.207 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.0006917/0.3728, allocations: 340.2 kB / 485.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002524/0.3731, allocations: 126.5 kB / 486.1 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005421/0.3785, allocations: 3.357 MB / 489.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/0.3785, allocations: 20 kB / 489.4 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.3785, allocations: 0 / 489.4 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.3785, allocations: 7.969 kB / 489.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007567/0.3861, allocations: 5.702 MB / 495.2 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.3861, allocations: 0 / 495.2 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005038/0.3867, allocations: 155.7 kB / 495.3 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01302/0.3997, allocations: 3.792 MB / 499.1 MB, free: 3.625 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003115/0.4, allocations: 39.98 kB / 499.1 MB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006746/0.4068, allocations: 3.497 MB / 0.4909 GB, free: 68 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4068, allocations: 0 / 0.4909 GB, free: 68 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005003/0.4118, allocations: 3.239 MB / 0.494 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00032/0.4122, allocations: 219.2 kB / 0.4942 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002034/0.4124, allocations: 32 kB / 0.4943 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001242/0.4136, allocations: 123.8 kB / 0.4944 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00028/0.4139, allocations: 113.8 kB / 0.4945 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001655/0.4141, allocations: 67.98 kB / 0.4945 GB, free: 12.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006619/0.4148, allocations: 491 kB / 0.495 GB, free: 11.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4148, allocations: 0 / 0.495 GB, free: 11.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001061/0.4158, allocations: 459.5 kB / 0.4955 GB, free: 11.31 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.0003748/0.4162, allocations: 190.4 kB / 0.4956 GB, free: 11.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00734/0.4236, allocations: 3.179 MB / 0.4987 GB, free: 7.938 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.4236, allocations: 9.938 kB / 0.4987 GB, free: 7.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005329/0.4289, allocations: 1.857 MB / 0.5006 GB, free: 6.078 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001054/0.43, allocations: 174.8 kB / 0.5007 GB, free: 5.902 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004464/0.4345, allocations: 2.582 MB / 0.5033 GB, free: 3.305 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006145/0.4351, allocations: 1.085 MB / 0.5043 GB, free: 2.188 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005484/0.4357, allocations: 157 kB / 0.5045 GB, free: 2.031 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002321/0.4359, allocations: 95.41 kB / 0.5046 GB, free: 1.938 MB / 382.1 MB Notification: Performance of SimCode: time 1.213e-06/0.4359, allocations: 0 / 0.5046 GB, free: 1.938 MB / 382.1 MB Notification: Performance of Templates: time 0.2042/0.6401, allocations: 30.58 MB / 0.5344 GB, free: 75.29 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 gbode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.pipe 2>&1)