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.004789/0.004789, allocations: 89.22 kB / 15.91 MB, free: 6.305 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.001284/0.001284, allocations: 196 kB / 16.83 MB, free: 6.238 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.223/1.223, allocations: 222.9 MB / 240.5 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1478/0.1478, allocations: 8.088 MB / 298.7 MB, free: 2.066 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 71.88 kB / 361.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09807/0.09943, allocations: 51.52 MB / 412.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.006788/0.1063, allocations: 6.607 MB / 419.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004101/0.1104, allocations: 2.501 MB / 421.8 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006431/0.1111, allocations: 20 kB / 421.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000738/0.1118, allocations: 282.6 kB / 422.1 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001604/0.1135, allocations: 0.6958 MB / 422.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002831/0.1163, allocations: 1.528 MB / 424.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001763/0.1181, allocations: 1.584 MB / 425.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000638/0.1187, allocations: 0.4925 MB / 426.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005363/0.1193, allocations: 0.6032 MB / 427 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008042/0.1201, allocations: 0.778 MB / 427.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001803/0.1203, allocations: 100 kB / 427.9 MB, free: 10.81 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008253/0.1211, allocations: 351.8 kB / 428.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002982/0.1214, allocations: 302.7 kB / 428.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006602/0.1221, allocations: 0.7152 MB / 429.2 MB, free: 9.453 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001834/0.1239, allocations: 2.014 MB / 431.2 MB, free: 7.434 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.1239, allocations: 4 kB / 431.2 MB, free: 7.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.1239, allocations: 3.984 kB / 431.2 MB, free: 7.426 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.939e-05/0.124, allocations: 4 kB / 431.2 MB, free: 7.422 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.01389/0.1379, allocations: 3.677 MB / 434.9 MB, free: 3.684 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.1379, allocations: 8.031 kB / 434.9 MB, free: 3.676 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002281/0.1382, allocations: 172.7 kB / 435.1 MB, free: 3.496 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003191/0.1385, allocations: 155.3 kB / 435.2 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.1396, allocations: 0.8393 MB / 436.1 MB, free: 2.461 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.1398, allocations: 316.6 kB / 436.4 MB, free: 2.102 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001868/0.14, allocations: 120.4 kB / 436.5 MB, free: 1.984 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002707/0.1427, allocations: 1.808 MB / 438.3 MB, free: 136 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.1428, allocations: 0 / 438.3 MB, free: 136 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001436/0.1429, allocations: 48 kB / 438.4 MB, free: 88 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.1429, allocations: 24 kB / 438.4 MB, free: 64 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1777/0.3207, allocations: 1.702 MB / 440.1 MB, free: 55.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00763/0.3283, allocations: 6.959 MB / 447 MB, free: 51.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00263/0.331, allocations: 3.873 MB / 450.9 MB, free: 48.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001266/0.3323, allocations: 1.175 MB / 452.1 MB, free: 48.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001561/0.3324, allocations: 39.61 kB / 452.1 MB, free: 48.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001773/0.3342, allocations: 1.324 MB / 453.5 MB, free: 47.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=167): time 3.396e-06/0.3342, allocations: 3.906 kB / 453.5 MB, free: 47.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=167): time 0.0303/0.3646, allocations: 8.977 MB / 462.4 MB, free: 45.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.88e-05/0.3646, allocations: 120.5 kB / 462.6 MB, free: 44.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008039/0.3655, allocations: 0.7259 MB / 463.3 MB, free: 44.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001535/0.3656, allocations: 73.42 kB / 463.3 MB, free: 44.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002066/0.3658, allocations: 422.8 kB / 463.8 MB, free: 44.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002988/0.3661, allocations: 0.5356 MB / 464.3 MB, free: 43.87 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005218/0.3667, allocations: 342.8 kB / 464.6 MB, free: 43.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.412e-05/0.3667, allocations: 341.6 kB / 465 MB, free: 43.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001414/0.3682, allocations: 1.113 MB / 466.1 MB, free: 42.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/0.3697, allocations: 1.278 MB / 467.4 MB, free: 42.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002967/0.3727, allocations: 2.4 MB / 469.8 MB, free: 40.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.3727, allocations: 0 / 469.8 MB, free: 40.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005891/0.3786, allocations: 3.72 MB / 473.5 MB, free: 39.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.3786, allocations: 9.438 kB / 473.5 MB, free: 39.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.3786, allocations: 4 kB / 473.5 MB, free: 39.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01365/0.3923, allocations: 5.325 MB / 478.8 MB, free: 38.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008839/0.3932, allocations: 246.6 kB / 479.1 MB, free: 38.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006036/0.3992, allocations: 3.435 MB / 482.5 MB, free: 36.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001171/0.4004, allocations: 179.3 kB / 482.7 MB, free: 36.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001448/0.4006, allocations: 70.47 kB / 482.7 MB, free: 36.34 MB / 366.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.0005474/0.4011, allocations: 346.8 kB / 483.1 MB, free: 36.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000238/0.4014, allocations: 122.1 kB / 483.2 MB, free: 36.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00478/0.4061, allocations: 3.363 MB / 486.6 MB, free: 34.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-05/0.4062, allocations: 18.12 kB / 486.6 MB, free: 34.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.4062, allocations: 0 / 486.6 MB, free: 34.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.4062, allocations: 7.938 kB / 486.6 MB, free: 34.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00719/0.4134, allocations: 5.726 MB / 492.3 MB, free: 31.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.4134, allocations: 2.906 kB / 492.3 MB, free: 31.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004977/0.4139, allocations: 149.5 kB / 492.5 MB, free: 31.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0129/0.4268, allocations: 3.845 MB / 496.3 MB, free: 30.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001542/0.427, allocations: 39.52 kB / 496.3 MB, free: 30.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005973/0.433, allocations: 3.483 MB / 499.8 MB, free: 28.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.433, allocations: 4.344 kB / 499.8 MB, free: 28.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004386/0.4374, allocations: 3.23 MB / 0.4913 GB, free: 25.4 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003391/0.4377, allocations: 211.6 kB / 0.4915 GB, free: 25.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002242/0.438, allocations: 42.55 kB / 0.4915 GB, free: 25.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.4392, allocations: 115.1 kB / 0.4916 GB, free: 25.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00031/0.4395, allocations: 116.5 kB / 0.4917 GB, free: 24.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/0.4397, allocations: 63.75 kB / 0.4918 GB, free: 24.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006755/0.4404, allocations: 494.3 kB / 0.4923 GB, free: 24.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4404, allocations: 0 / 0.4923 GB, free: 24.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001081/0.4414, allocations: 456.1 kB / 0.4927 GB, free: 24.07 MB / 366.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 {(40,52)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004555/0.446, allocations: 3.865 MB / 0.4965 GB, free: 20.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00682/0.4529, allocations: 3.143 MB / 0.4995 GB, free: 17.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.4529, allocations: 5.688 kB / 0.4995 GB, free: 17.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004889/0.4578, allocations: 1.796 MB / 0.5013 GB, free: 15.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001097/0.4589, allocations: 169.6 kB / 0.5015 GB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02382/0.4827, allocations: 16.02 MB / 0.5171 GB, free: 132 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000692/0.4835, allocations: 1.085 MB / 0.5182 GB, free: 15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007075/0.4842, allocations: 159.2 kB / 0.5183 GB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005986/0.4848, allocations: 451.2 kB / 0.5187 GB, free: 14.41 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4848, allocations: 0.875 kB / 0.5187 GB, free: 14.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.046/1.531, allocations: 38.59 MB / 0.5564 GB, free: 8.105 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003538/1.531, allocations: 248.8 kB / 0.5567 GB, free: 7.852 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.588/4.119, allocations: 0 / 0.5567 GB, free: 7.852 MB / 414.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithVariableLoads_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithVariableLoads.fmu > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads.pipe 2>&1)