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.0007491/0.0007491, allocations: 102.8 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008175/0.0008175, allocations: 184 kB / 16.96 MB, free: 6.668 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.306/1.306, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1533/0.1533, allocations: 8.082 MB / 300.2 MB, free: 2.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003408/0.0003407, allocations: 15.98 kB / 363.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09205/0.09241, allocations: 52.51 MB / 416.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.005283/0.09772, allocations: 6.106 MB / 422.2 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1757/0.2735, allocations: 2.497 MB / 424.7 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009843/0.2745, allocations: 23.31 kB / 424.7 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009032/0.2754, allocations: 284 kB / 425 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002039/0.2775, allocations: 0.6909 MB / 425.7 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002416/0.2799, allocations: 1.485 MB / 427.2 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001538/0.2814, allocations: 1.582 MB / 428.8 MB, free: 34.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005312/0.282, allocations: 495.8 kB / 429.3 MB, free: 34.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000506/0.2825, allocations: 0.5571 MB / 429.8 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006082/0.2831, allocations: 0.721 MB / 430.5 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001287/0.2833, allocations: 79.09 kB / 430.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006361/0.2839, allocations: 337.5 kB / 430.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00015/0.2841, allocations: 260.4 kB / 431.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005326/0.2846, allocations: 0.6991 MB / 431.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001384/0.286, allocations: 1.94 MB / 433.8 MB, free: 34.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.286, allocations: 2.844 kB / 433.8 MB, free: 34.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.286, allocations: 0 / 433.8 MB, free: 34.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.286, allocations: 0 / 433.8 MB, free: 34.03 MB / 350.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.01344/0.2995, allocations: 3.464 MB / 437.3 MB, free: 33.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.2995, allocations: 9.906 kB / 437.3 MB, free: 33.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003774/0.2999, allocations: 175.2 kB / 437.5 MB, free: 33.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003032/0.3002, allocations: 159.1 kB / 437.6 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.3012, allocations: 0.8483 MB / 438.5 MB, free: 32.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.3014, allocations: 318.8 kB / 438.8 MB, free: 32.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000189/0.3016, allocations: 115.3 kB / 438.9 MB, free: 32.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002487/0.3041, allocations: 1.823 MB / 440.7 MB, free: 32.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.3041, allocations: 3.938 kB / 440.7 MB, free: 32.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000147/0.3042, allocations: 51.31 kB / 440.8 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.3043, allocations: 26.06 kB / 440.8 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002169/0.3064, allocations: 1.725 MB / 442.5 MB, free: 31.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007503/0.3139, allocations: 7.057 MB / 449.6 MB, free: 26.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002639/0.3166, allocations: 3.884 MB / 453.5 MB, free: 23.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001266/0.3179, allocations: 1.18 MB / 454.7 MB, free: 22.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001351/0.318, allocations: 35.59 kB / 454.7 MB, free: 22.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001701/0.3197, allocations: 1.325 MB / 456 MB, free: 22.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=167): time 3.597e-06/0.3197, allocations: 0 / 456 MB, free: 22.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=167): time 0.03227/0.352, allocations: 8.997 MB / 465 MB, free: 19.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.206e-05/0.3521, allocations: 122.2 kB / 465.1 MB, free: 19.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.3532, allocations: 0.7421 MB / 465.9 MB, free: 19.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002137/0.3534, allocations: 73.64 kB / 466 MB, free: 19.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/0.3536, allocations: 422.5 kB / 466.4 MB, free: 18.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003983/0.3541, allocations: 0.5393 MB / 466.9 MB, free: 18.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002458/0.3543, allocations: 168.6 kB / 467.1 MB, free: 18.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.787e-05/0.3544, allocations: 344.4 kB / 467.4 MB, free: 17.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001647/0.356, allocations: 1.125 MB / 468.5 MB, free: 17.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001742/0.3578, allocations: 1.283 MB / 469.8 MB, free: 16.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003389/0.3612, allocations: 2.416 MB / 472.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.3612, allocations: 1.469 kB / 472.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006779/0.368, allocations: 3.752 MB / 476 MB, free: 13.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.368, allocations: 11.16 kB / 476 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.368, allocations: 4.641 kB / 476 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01619/0.3842, allocations: 5.377 MB / 481.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.3854, allocations: 260.7 kB / 481.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006846/0.3923, allocations: 3.426 MB / 485.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00203/0.3944, allocations: 191.9 kB / 485.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000211/0.3946, allocations: 68.55 kB / 485.3 MB, free: 10.82 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.0007077/0.3953, allocations: 344 kB / 485.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002558/0.3956, allocations: 131.4 kB / 485.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004852/0.4004, allocations: 3.352 MB / 489.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.4005, allocations: 20 kB / 489.1 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.4005, allocations: 0 / 489.1 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.4005, allocations: 9.469 kB / 489.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006981/0.4075, allocations: 5.743 MB / 494.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.4075, allocations: 0 / 494.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004638/0.408, allocations: 151.8 kB / 495 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01318/0.4212, allocations: 3.899 MB / 498.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000278/0.4215, allocations: 40.67 kB / 499 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006942/0.4284, allocations: 3.479 MB / 0.4907 GB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.4284, allocations: 0 / 0.4907 GB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005367/0.4338, allocations: 3.226 MB / 0.4938 GB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004579/0.4343, allocations: 219.3 kB / 0.494 GB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003207/0.4346, allocations: 32 kB / 0.4941 GB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/0.4363, allocations: 157.4 kB / 0.4942 GB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002939/0.4366, allocations: 117.8 kB / 0.4943 GB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001616/0.4368, allocations: 63.92 kB / 0.4944 GB, free: 6.273 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008279/0.4376, allocations: 0.4912 MB / 0.4949 GB, free: 5.781 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4376, allocations: 0 / 0.4949 GB, free: 5.781 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001483/0.4391, allocations: 467.4 kB / 0.4953 GB, free: 5.324 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.005577/0.4447, allocations: 3.854 MB / 0.4991 GB, free: 1.441 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0082/0.4529, allocations: 3.136 MB / 0.5022 GB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/0.453, allocations: 5.688 kB / 0.5022 GB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005858/0.4588, allocations: 1.788 MB / 0.5039 GB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001699/0.4606, allocations: 165.5 kB / 0.5041 GB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02881/0.4894, allocations: 16.13 MB / 0.5198 GB, free: 11.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006509/0.4901, allocations: 1.081 MB / 0.5209 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007974/0.4909, allocations: 165 kB / 0.521 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006432/0.4915, allocations: 451.3 kB / 0.5215 GB, free: 10.07 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4916, allocations: 4 kB / 0.5215 GB, free: 10.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06166/0.5532, allocations: 38.13 MB / 0.5587 GB, free: 4.191 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001837/0.5534, allocations: 252.1 kB / 0.5589 GB, free: 3.934 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.436/2.989, allocations: 3.938 kB / 0.5589 GB, free: 3.93 MB / 430.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)