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: "" <> buildModelFMU(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithVariableLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithVariableLoads",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 102.3 kB / 16.31 MB, free: 5.879 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.001455/0.001456, allocations: 191.6 kB / 17.24 MB, free: 5.539 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.34/1.34, allocations: 222.9 MB / 240.9 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.046/0.046, allocations: 8.097 MB / 299.2 MB, free: 6.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001362, allocations: 59.91 kB / 361.8 MB, free: 8.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.188/0.1894, allocations: 51.52 MB / 413.4 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.004972/0.1944, allocations: 6.656 MB / 420 MB, free: 18.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002891/0.1973, allocations: 2.536 MB / 422.5 MB, free: 16.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000353/0.1977, allocations: 20 kB / 422.6 MB, free: 16.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005684/0.1983, allocations: 349.6 kB / 422.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001277/0.1996, allocations: 0.7728 MB / 423.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002198/0.2018, allocations: 1.557 MB / 425.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001194/0.203, allocations: 1.682 MB / 426.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005569/0.2036, allocations: 0.5813 MB / 427.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004522/0.204, allocations: 0.6853 MB / 428.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006132/0.2047, allocations: 0.8327 MB / 429 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001741/0.2048, allocations: 176 kB / 429.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005957/0.2054, allocations: 435.8 kB / 429.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001876/0.2056, allocations: 386.7 kB / 430 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004534/0.2061, allocations: 0.7894 MB / 430.8 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001262/0.2074, allocations: 2.068 MB / 432.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2074, allocations: 0 / 432.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2074, allocations: 0 / 432.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.039e-05/0.2074, allocations: 4 kB / 432.9 MB, free: 6 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.01412/0.2215, allocations: 3.681 MB / 436.5 MB, free: 2.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.2216, allocations: 15.89 kB / 436.6 MB, free: 2.234 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002028/0.2218, allocations: 164.7 kB / 436.7 MB, free: 2.062 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003144/0.2221, allocations: 159.3 kB / 436.9 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.2231, allocations: 0.8355 MB / 437.7 MB, free: 1.031 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.2233, allocations: 320.7 kB / 438 MB, free: 0.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001647/0.2234, allocations: 112.4 kB / 438.1 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002608/0.2261, allocations: 1.808 MB / 439.9 MB, free: 14.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.2261, allocations: 0 / 439.9 MB, free: 14.71 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001583/0.2263, allocations: 52 kB / 440 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.246e-05/0.2263, allocations: 24 kB / 440 MB, free: 14.63 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002554/0.2288, allocations: 1.71 MB / 441.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008845/0.2377, allocations: 6.969 MB / 448.7 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003511/0.2412, allocations: 3.863 MB / 452.6 MB, free: 1.227 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001594/0.2429, allocations: 1.19 MB / 453.7 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001503/0.243, allocations: 41.25 kB / 453.8 MB, free: 0 / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002002/0.245, allocations: 1.322 MB / 455.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=167): time 2.956e-06/0.245, allocations: 0 / 455.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=167): time 0.03408/0.2791, allocations: 8.98 MB / 464.1 MB, free: 5.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/0.2792, allocations: 120.8 kB / 464.2 MB, free: 5.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.2803, allocations: 0.7269 MB / 464.9 MB, free: 4.766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002387/0.2805, allocations: 73.7 kB / 465 MB, free: 4.688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003905/0.2809, allocations: 425.5 kB / 465.4 MB, free: 4.262 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005301/0.2815, allocations: 0.5352 MB / 466 MB, free: 3.719 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00061/0.2821, allocations: 335.5 kB / 466.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.2822, allocations: 353.9 kB / 466.6 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001746/0.284, allocations: 1.109 MB / 467.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/0.2858, allocations: 1.273 MB / 469 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003636/0.2894, allocations: 2.408 MB / 471.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.2895, allocations: 0 / 471.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.007021/0.2965, allocations: 3.725 MB / 475.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.2965, allocations: 4 kB / 475.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.2965, allocations: 0 / 475.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01488/0.3114, allocations: 5.344 MB / 480.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009797/0.3124, allocations: 243.6 kB / 480.7 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006926/0.3194, allocations: 3.436 MB / 484.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.3208, allocations: 188.8 kB / 484.3 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001686/0.321, allocations: 63.98 kB / 484.4 MB, free: 1.18 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.0006149/0.3216, allocations: 344.2 kB / 484.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002882/0.3219, allocations: 126.5 kB / 484.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005317/0.3272, allocations: 3.357 MB / 488.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/0.3273, allocations: 20 kB / 488.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.3273, allocations: 0 / 488.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.597e-05/0.3273, allocations: 7.969 kB / 488.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007669/0.335, allocations: 5.718 MB / 494 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.335, allocations: 0 / 494 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005207/0.3355, allocations: 147.8 kB / 494.1 MB, free: 7.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01356/0.3491, allocations: 3.807 MB / 497.9 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001953/0.3493, allocations: 43.92 kB / 498 MB, free: 3.523 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007178/0.3565, allocations: 3.501 MB / 0.4897 GB, free: 0 / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3565, allocations: 0 / 0.4897 GB, free: 0 / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005101/0.3616, allocations: 3.234 MB / 0.4929 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003038/0.362, allocations: 215.2 kB / 0.4931 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.3622, allocations: 35.98 kB / 0.4931 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00139/0.3636, allocations: 111.9 kB / 0.4932 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002888/0.3639, allocations: 117.8 kB / 0.4933 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00016/0.3641, allocations: 63.98 kB / 0.4934 GB, free: 12.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007371/0.3648, allocations: 495 kB / 0.4939 GB, free: 11.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3648, allocations: 0 / 0.4939 GB, free: 11.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001108/0.366, allocations: 459.5 kB / 0.4943 GB, free: 11.26 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.005456/0.3714, allocations: 3.868 MB / 0.4981 GB, free: 7.367 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009504/0.381, allocations: 3.226 MB / 0.5012 GB, free: 4.137 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/0.381, allocations: 5.688 kB / 0.5012 GB, free: 4.133 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005897/0.3869, allocations: 1.858 MB / 0.5031 GB, free: 2.277 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.3882, allocations: 170.9 kB / 0.5032 GB, free: 2.113 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1701/0.5583, allocations: 15.53 MB / 0.5184 GB, free: 88.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000502/0.5589, allocations: 1.083 MB / 0.5194 GB, free: 88.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006032/0.5595, allocations: 162.8 kB / 0.5196 GB, free: 88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004664/0.56, allocations: 452.7 kB / 0.52 GB, free: 87.66 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.56, allocations: 0 / 0.52 GB, free: 87.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05709/0.6171, allocations: 40.61 MB / 0.5597 GB, free: 48.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.28, allocations: 15.45 kB / 0.5597 GB, free: 48.98 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithVariableLoads.fmu > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.pipe 2>&1)