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.00112/0.00112, allocations: 98.94 kB / 16.44 MB, free: 6.5 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.0009875/0.0009875, allocations: 192 kB / 17.38 MB, free: 5.715 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.273/1.273, allocations: 222.9 MB / 241.1 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04718/0.04718, allocations: 8.095 MB / 299.3 MB, free: 6.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 64.14 kB / 414 MB, free: 22.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09201/0.09319, allocations: 51.52 MB / 465.5 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.006812/0.1001, allocations: 6.667 MB / 472.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004549/0.1046, allocations: 2.533 MB / 474.7 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007818/0.1055, allocations: 20 kB / 474.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007929/0.1063, allocations: 357.6 kB / 475.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001978/0.1083, allocations: 0.7611 MB / 475.8 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002776/0.1111, allocations: 1.588 MB / 477.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002014/0.1131, allocations: 1.705 MB / 479.1 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007493/0.1139, allocations: 0.5735 MB / 479.7 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008596/0.1147, allocations: 0.6929 MB / 480.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008806/0.1156, allocations: 0.8328 MB / 481.2 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002007/0.1158, allocations: 176 kB / 481.4 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007809/0.1166, allocations: 443.7 kB / 481.8 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002732/0.1169, allocations: 378.8 kB / 482.2 MB, free: 2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006556/0.1176, allocations: 0.7894 MB / 483 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001944/0.1195, allocations: 2.088 MB / 485.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1195, allocations: 3.938 kB / 485.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1195, allocations: 0 / 485.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.667e-05/0.1196, allocations: 0 / 485.1 MB, free: 15.11 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.01381/0.1334, allocations: 3.674 MB / 488.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.1335, allocations: 11.89 kB / 488.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002274/0.1337, allocations: 180.6 kB / 488.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000301/0.134, allocations: 159.2 kB / 489.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.1351, allocations: 0.8394 MB / 489.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/0.1353, allocations: 316.7 kB / 490.2 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000187/0.1355, allocations: 116.4 kB / 490.4 MB, free: 9.664 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002632/0.1382, allocations: 1.807 MB / 492.2 MB, free: 7.812 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.1382, allocations: 0 / 492.2 MB, free: 7.812 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001466/0.1384, allocations: 55.98 kB / 492.2 MB, free: 7.758 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.11e-05/0.1384, allocations: 24 kB / 492.2 MB, free: 7.734 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002474/0.1409, allocations: 1.703 MB / 493.9 MB, free: 6.023 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00886/0.1497, allocations: 6.942 MB / 0.4892 GB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003451/0.1532, allocations: 3.867 MB / 0.4929 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001629/0.1549, allocations: 1.188 MB / 0.4941 GB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001773/0.1551, allocations: 37.27 kB / 0.4941 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002103/0.1572, allocations: 1.326 MB / 0.4954 GB, free: 7.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=167): time 3.807e-06/0.1572, allocations: 4 kB / 0.4954 GB, free: 7.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=167): time 0.2506/0.4078, allocations: 8.962 MB / 0.5042 GB, free: 44.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.959e-05/0.4079, allocations: 120.9 kB / 0.5043 GB, free: 44.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.409, allocations: 0.7226 MB / 0.505 GB, free: 44.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002858/0.4093, allocations: 73.19 kB / 0.5051 GB, free: 44.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002845/0.4096, allocations: 423 kB / 0.5055 GB, free: 44.47 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003959/0.41, allocations: 0.535 MB / 0.506 GB, free: 44.17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005921/0.4106, allocations: 340.6 kB / 0.5063 GB, free: 44.03 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.103e-05/0.4107, allocations: 349 kB / 0.5066 GB, free: 43.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001667/0.4124, allocations: 1.108 MB / 0.5077 GB, free: 43.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001827/0.4142, allocations: 1.272 MB / 0.509 GB, free: 42.53 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0034/0.4176, allocations: 2.405 MB / 0.5113 GB, free: 41.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.4177, allocations: 4.688 kB / 0.5113 GB, free: 41.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.007038/0.4247, allocations: 3.724 MB / 0.515 GB, free: 39.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.4248, allocations: 7.047 kB / 0.515 GB, free: 39.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.4248, allocations: 1.188 kB / 0.515 GB, free: 39.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01471/0.4395, allocations: 5.326 MB / 0.5202 GB, free: 38.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/0.4406, allocations: 250.3 kB / 0.5204 GB, free: 38.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005781/0.4464, allocations: 3.426 MB / 0.5238 GB, free: 36.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/0.4477, allocations: 193 kB / 0.5239 GB, free: 36.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001396/0.4478, allocations: 66.47 kB / 0.524 GB, free: 36.74 MB / 382.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.0005441/0.4484, allocations: 339.5 kB / 0.5243 GB, free: 36.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002025/0.4486, allocations: 120.8 kB / 0.5244 GB, free: 36.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004382/0.453, allocations: 3.359 MB / 0.5277 GB, free: 34.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.453, allocations: 22.58 kB / 0.5277 GB, free: 34.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.453, allocations: 0 / 0.5277 GB, free: 34.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-05/0.453, allocations: 11.92 kB / 0.5278 GB, free: 34.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005889/0.4589, allocations: 5.699 MB / 0.5333 GB, free: 29.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.231e-06/0.459, allocations: 0 / 0.5333 GB, free: 29.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004427/0.4594, allocations: 149.4 kB / 0.5335 GB, free: 29.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01124/0.4706, allocations: 3.793 MB / 0.5372 GB, free: 25.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000192/0.4709, allocations: 43.98 kB / 0.5372 GB, free: 25.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005549/0.4764, allocations: 3.497 MB / 0.5406 GB, free: 22.17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4764, allocations: 0 / 0.5406 GB, free: 22.17 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003945/0.4804, allocations: 3.23 MB / 0.5438 GB, free: 18.92 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002528/0.4807, allocations: 223.1 kB / 0.544 GB, free: 18.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/0.4808, allocations: 36 kB / 0.544 GB, free: 18.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.482, allocations: 125.9 kB / 0.5441 GB, free: 18.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002409/0.4822, allocations: 113.8 kB / 0.5443 GB, free: 18.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.4824, allocations: 63.98 kB / 0.5443 GB, free: 18.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005239/0.4829, allocations: 495 kB / 0.5448 GB, free: 17.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4829, allocations: 0 / 0.5448 GB, free: 17.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009173/0.4838, allocations: 455.6 kB / 0.5452 GB, free: 17.43 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.004069/0.4879, allocations: 3.871 MB / 0.549 GB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006295/0.4942, allocations: 3.18 MB / 0.5521 GB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.4943, allocations: 5.688 kB / 0.5521 GB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004492/0.4987, allocations: 1.862 MB / 0.5539 GB, free: 8.504 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009575/0.4997, allocations: 170.1 kB / 0.5541 GB, free: 8.348 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02245/0.5222, allocations: 14.97 MB / 0.5687 GB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006556/0.5229, allocations: 1.085 MB / 0.5698 GB, free: 8.125 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005398/0.5234, allocations: 153 kB / 0.5699 GB, free: 7.973 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005619/0.524, allocations: 451.3 kB / 0.5703 GB, free: 7.531 MB / 398.1 MB Notification: Performance of SimCode: time 7.02e-07/0.524, allocations: 4 kB / 0.5703 GB, free: 7.527 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06719/0.5912, allocations: 41.16 MB / 0.6105 GB, free: 14.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/13.13, allocations: 14.08 kB / 0.6106 GB, free: 14.67 MB / 446.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)