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.001647/0.001647, allocations: 101.8 kB / 16.31 MB, free: 6.359 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.001865/0.001865, allocations: 184.7 kB / 17.24 MB, free: 5.879 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.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.0442/0.0442, allocations: 8.087 MB / 299.2 MB, free: 6.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002424/0.002425, allocations: 67.89 kB / 361.8 MB, free: 8.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2384, allocations: 51.5 MB / 413.4 MB, free: 25.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.005578/0.2441, allocations: 6.66 MB / 420 MB, free: 18.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003146/0.2472, allocations: 2.532 MB / 422.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003795/0.2476, allocations: 20 kB / 422.6 MB, free: 16.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005603/0.2482, allocations: 349.6 kB / 422.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001291/0.2495, allocations: 0.769 MB / 423.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002166/0.2517, allocations: 1.566 MB / 425.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00136/0.2531, allocations: 1.686 MB / 426.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005596/0.2536, allocations: 0.5735 MB / 427.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004915/0.2541, allocations: 0.6814 MB / 428.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006199/0.2548, allocations: 0.8327 MB / 429 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001755/0.2549, allocations: 176 kB / 429.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006103/0.2556, allocations: 439.8 kB / 429.6 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001853/0.2558, allocations: 382.7 kB / 430 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004552/0.2562, allocations: 0.7856 MB / 430.8 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001563/0.2578, allocations: 2.068 MB / 432.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.2578, allocations: 0 / 432.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2578, allocations: 0 / 432.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.629e-05/0.2579, allocations: 0 / 432.8 MB, free: 5.996 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.01397/0.2718, allocations: 3.685 MB / 436.5 MB, free: 2.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.2719, allocations: 15.89 kB / 436.5 MB, free: 2.227 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001951/0.2721, allocations: 172.6 kB / 436.7 MB, free: 2.047 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002972/0.2724, allocations: 159.3 kB / 436.9 MB, free: 1.891 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009481/0.2734, allocations: 0.8355 MB / 437.7 MB, free: 1.016 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/0.2735, allocations: 316.7 kB / 438 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.2737, allocations: 120.4 kB / 438.1 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002522/0.2762, allocations: 1.804 MB / 439.9 MB, free: 14.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.2762, allocations: 0 / 439.9 MB, free: 14.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/0.2764, allocations: 56 kB / 440 MB, free: 14.63 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.831e-05/0.2764, allocations: 24 kB / 440 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002503/0.2789, allocations: 1.707 MB / 441.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009819/0.2887, allocations: 6.973 MB / 448.7 MB, free: 5.457 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003545/0.2923, allocations: 3.863 MB / 452.6 MB, free: 1.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001587/0.2939, allocations: 1.188 MB / 453.7 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000171/0.2941, allocations: 41.33 kB / 453.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001987/0.2961, allocations: 1.318 MB / 455.1 MB, free: 14.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=167): time 3.777e-06/0.2961, allocations: 0 / 455.1 MB, free: 14.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=167): time 0.03325/0.3294, allocations: 8.976 MB / 464.1 MB, free: 5.633 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.34e-05/0.3295, allocations: 124.8 kB / 464.2 MB, free: 5.484 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/0.3306, allocations: 0.727 MB / 464.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002355/0.3308, allocations: 73.7 kB / 465 MB, free: 4.672 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003792/0.3312, allocations: 425.5 kB / 465.4 MB, free: 4.246 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004844/0.3317, allocations: 0.5274 MB / 465.9 MB, free: 3.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005986/0.3323, allocations: 343.5 kB / 466.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.3325, allocations: 345.9 kB / 466.6 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001766/0.3343, allocations: 1.109 MB / 467.7 MB, free: 1.918 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/0.3361, allocations: 1.277 MB / 469 MB, free: 0.625 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003656/0.3398, allocations: 2.404 MB / 471.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.3398, allocations: 4 kB / 471.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.007419/0.3472, allocations: 3.725 MB / 475.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.3473, allocations: 6.188 kB / 475.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.3473, allocations: 0 / 475.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01516/0.3625, allocations: 5.348 MB / 480.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.3637, allocations: 243.6 kB / 480.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007076/0.3708, allocations: 3.436 MB / 484.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001541/0.3724, allocations: 182.1 kB / 484.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001598/0.3725, allocations: 67.98 kB / 484.4 MB, free: 1.164 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.0006495/0.3732, allocations: 336.2 kB / 484.7 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002844/0.3735, allocations: 126.5 kB / 484.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005362/0.3789, allocations: 3.354 MB / 488.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.776e-05/0.3789, allocations: 23.94 kB / 488.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.3789, allocations: 0 / 488.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.686e-05/0.3789, allocations: 11.95 kB / 488.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007929/0.3869, allocations: 5.722 MB / 494 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-06/0.3869, allocations: 3.984 kB / 494 MB, free: 7.508 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005086/0.3874, allocations: 147.8 kB / 494.1 MB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01329/0.4007, allocations: 3.803 MB / 497.9 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003096/0.4011, allocations: 39.92 kB / 498 MB, free: 3.512 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006816/0.4079, allocations: 3.505 MB / 0.4897 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4079, allocations: 0 / 0.4897 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00505/0.413, allocations: 3.23 MB / 0.4929 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002963/0.4133, allocations: 215.2 kB / 0.4931 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002205/0.4135, allocations: 39.98 kB / 0.4931 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.4148, allocations: 117.9 kB / 0.4932 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002718/0.4151, allocations: 117.8 kB / 0.4933 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001332/0.4152, allocations: 59.98 kB / 0.4934 GB, free: 12.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00066/0.4159, allocations: 495 kB / 0.4939 GB, free: 11.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4159, allocations: 7.938 kB / 0.4939 GB, free: 11.69 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001022/0.417, allocations: 451.5 kB / 0.4943 GB, free: 11.25 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.005361/0.4223, allocations: 3.872 MB / 0.4981 GB, free: 7.352 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008824/0.4312, allocations: 3.222 MB / 0.5012 GB, free: 4.125 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/0.4312, allocations: 5.688 kB / 0.5012 GB, free: 4.121 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005437/0.4367, allocations: 1.87 MB / 0.5031 GB, free: 2.254 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.4378, allocations: 169.8 kB / 0.5032 GB, free: 2.094 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1783/0.6161, allocations: 15.53 MB / 0.5184 GB, free: 88.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005497/0.6167, allocations: 1.085 MB / 0.5194 GB, free: 88.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00065/0.6174, allocations: 151.9 kB / 0.5196 GB, free: 88.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004916/0.6179, allocations: 453.7 kB / 0.52 GB, free: 87.7 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.6179, allocations: 1.875 kB / 0.52 GB, free: 87.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05894/0.6768, allocations: 40.61 MB / 0.5597 GB, free: 49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.29, allocations: 15.53 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 & /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)