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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.0007087/0.0007087, allocations: 84.19 kB / 15.75 MB, free: 416 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.0007801/0.0007801, allocations: 177.7 kB / 16.63 MB, free: 6.887 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.257/1.257, allocations: 223.2 MB / 240.7 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1623/0.1623, allocations: 8.09 MB / 299.8 MB, free: 2.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002815/0.0002815, allocations: 8 kB / 363 MB, free: 13.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08624/0.08654, allocations: 52.52 MB / 415.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.005248/0.09181, allocations: 5.668 MB / 421.1 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003612/0.09546, allocations: 2.4 MB / 423.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004412/0.09592, allocations: 23.94 kB / 423.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004749/0.0964, allocations: 214.7 kB / 423.8 MB, free: 292 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1642/0.2606, allocations: 0.6156 MB / 424.4 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002166/0.2628, allocations: 1.262 MB / 425.7 MB, free: 34.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.2641, allocations: 1.499 MB / 427.2 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000472/0.2646, allocations: 425.9 kB / 427.6 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003663/0.265, allocations: 0.5454 MB / 428.1 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005731/0.2656, allocations: 0.6955 MB / 428.8 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001156/0.2657, allocations: 74.69 kB / 428.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005332/0.2662, allocations: 326.9 kB / 429.2 MB, free: 34.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.2664, allocations: 251.4 kB / 429.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.2666, allocations: 288.6 kB / 429.7 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.2676, allocations: 1.563 MB / 431.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2676, allocations: 0 / 431.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2677, allocations: 0 / 431.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.2677, allocations: 0 / 431.3 MB, free: 34.34 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.01163/0.2793, allocations: 3.485 MB / 434.8 MB, free: 33.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.2794, allocations: 13.25 kB / 434.8 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002624/0.2796, allocations: 171 kB / 435 MB, free: 33.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002681/0.2799, allocations: 163.8 kB / 435.1 MB, free: 33.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009526/0.2809, allocations: 0.8112 MB / 435.9 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.281, allocations: 324.2 kB / 436.2 MB, free: 32.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/0.2812, allocations: 118.4 kB / 436.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00231/0.2835, allocations: 1.81 MB / 438.2 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.2835, allocations: 0 / 438.2 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/0.2836, allocations: 58.19 kB / 438.2 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.2837, allocations: 29.36 kB / 438.3 MB, free: 32.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002106/0.2858, allocations: 1.715 MB / 440 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006917/0.2927, allocations: 7.068 MB / 447 MB, free: 28.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/0.2954, allocations: 3.858 MB / 450.9 MB, free: 25.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001417/0.2968, allocations: 1.177 MB / 452.1 MB, free: 24.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001671/0.297, allocations: 36.97 kB / 452.1 MB, free: 24.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001795/0.2988, allocations: 1.319 MB / 453.4 MB, free: 24.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=167): time 3.646e-06/0.2988, allocations: 0 / 453.4 MB, free: 24.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=167): time 0.0272/0.326, allocations: 8.835 MB / 462.3 MB, free: 21.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.3261, allocations: 120.3 kB / 462.4 MB, free: 21.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009307/0.3271, allocations: 0.7419 MB / 463.1 MB, free: 21.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000204/0.3273, allocations: 72.12 kB / 463.2 MB, free: 21.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002507/0.3275, allocations: 426.5 kB / 463.6 MB, free: 20.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003948/0.328, allocations: 0.5306 MB / 464.1 MB, free: 20.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.3281, allocations: 40.03 kB / 464.2 MB, free: 20.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.3282, allocations: 419.2 kB / 464.6 MB, free: 20.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001632/0.3299, allocations: 1.117 MB / 465.7 MB, free: 19.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001734/0.3316, allocations: 1.279 MB / 467 MB, free: 18.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001661/0.3333, allocations: 1.189 MB / 468.2 MB, free: 18.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.311e-06/0.3333, allocations: 7.891 kB / 468.2 MB, free: 18.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006596/0.3399, allocations: 3.788 MB / 472 MB, free: 16.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.3399, allocations: 7.641 kB / 472 MB, free: 16.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.34, allocations: 3.141 kB / 472 MB, free: 16.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01408/0.354, allocations: 5.144 MB / 477.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.3552, allocations: 258.6 kB / 477.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006311/0.3616, allocations: 3.409 MB / 480.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/0.3632, allocations: 202 kB / 481 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002459/0.3635, allocations: 68.08 kB / 481.1 MB, free: 13.63 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 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.feeder2.load1.degradedMode,feeder2.load1.degradedMode,$PRE.feeder2.load2.degradedMode,feeder2.load2.degradedMode,$PRE.feeder2.load3.degradedMode,feeder2.load3.degradedMode,$PRE.feeder2.load4.degradedMode,feeder2.load4.degradedMode,$PRE.feeder1.load1.degradedMode,feeder1.load1.degradedMode,$PRE.feeder1.load2.degradedMode,feeder1.load2.degradedMode,$PRE.feeder1.load3.degradedMode,feeder1.load3.degradedMode,$PRE.feeder1.load4.degradedMode,feeder1.load4.degradedMode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {40 44} Notification: Performance of prepare postOptimizeDAE: time 0.0007602/0.3642, allocations: 355.4 kB / 481.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003023/0.3645, allocations: 121.1 kB / 481.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005025/0.3696, allocations: 3.346 MB / 484.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/0.3696, allocations: 17.97 kB / 484.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.3696, allocations: 0 / 484.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-05/0.3696, allocations: 11.31 kB / 484.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006782/0.3764, allocations: 5.723 MB / 490.6 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.3765, allocations: 4 kB / 490.6 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004369/0.3769, allocations: 147.8 kB / 490.8 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01048/0.3874, allocations: 3.836 MB / 494.6 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/0.3875, allocations: 44.73 kB / 494.6 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005408/0.393, allocations: 3.463 MB / 498.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.393, allocations: 3.953 kB / 498.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005033/0.398, allocations: 3.214 MB / 0.4896 GB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004228/0.3985, allocations: 227.1 kB / 0.4898 GB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002936/0.3988, allocations: 36 kB / 0.4898 GB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001423/0.4002, allocations: 144 kB / 0.49 GB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002742/0.4005, allocations: 125.8 kB / 0.4901 GB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001674/0.4007, allocations: 63.98 kB / 0.4901 GB, free: 11.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007778/0.4014, allocations: 0.4912 MB / 0.4906 GB, free: 11.13 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4014, allocations: 0 / 0.4906 GB, free: 11.13 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001435/0.4029, allocations: 451.6 kB / 0.4911 GB, free: 10.69 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {40 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.005419/0.4083, allocations: 3.845 MB / 0.4948 GB, free: 6.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007112/0.4154, allocations: 3.144 MB / 0.4979 GB, free: 3.688 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.148e-06/0.4155, allocations: 5.688 kB / 0.4979 GB, free: 3.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00461/0.4201, allocations: 1.773 MB / 0.4996 GB, free: 1.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.4211, allocations: 177.4 kB / 0.4998 GB, free: 1.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01715/0.4383, allocations: 10.23 MB / 0.5098 GB, free: 7.234 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006663/0.439, allocations: 1.085 MB / 0.5108 GB, free: 6.113 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007097/0.4397, allocations: 165 kB / 0.511 GB, free: 5.949 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006126/0.4403, allocations: 455.3 kB / 0.5114 GB, free: 5.504 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4404, allocations: 0 / 0.5114 GB, free: 5.504 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0563/0.4967, allocations: 37.77 MB / 0.5483 GB, free: 16 kB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002031/0.4969, allocations: 230 kB / 0.5485 GB, free: 15.78 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.218/2.714, allocations: 0 / 0.5485 GB, free: 15.78 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/linux/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) Environment - environmentSimulation: