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.001121/0.001122, allocations: 103.2 kB / 16.45 MB, free: 6.445 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.001307/0.001307, allocations: 189.5 kB / 17.39 MB, free: 5.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.256/1.256, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04661/0.04661, allocations: 8.1 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 71.83 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08925/0.09041, allocations: 51.52 MB / 465.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.007154/0.0976, allocations: 6.663 MB / 472.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004255/0.1019, allocations: 2.545 MB / 474.7 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001/0.1029, allocations: 20 kB / 474.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009636/0.1039, allocations: 345.6 kB / 475.1 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00207/0.106, allocations: 0.7728 MB / 475.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002828/0.1088, allocations: 1.583 MB / 477.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002133/0.111, allocations: 1.705 MB / 479.1 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007377/0.1117, allocations: 0.5813 MB / 479.7 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000737/0.1125, allocations: 0.6852 MB / 480.4 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008877/0.1134, allocations: 0.8366 MB / 481.2 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001954/0.1136, allocations: 180 kB / 481.4 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007044/0.1143, allocations: 435.8 kB / 481.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002615/0.1146, allocations: 374.8 kB / 482.2 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006135/0.1152, allocations: 0.7933 MB / 483 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001961/0.1171, allocations: 2.088 MB / 485.1 MB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1172, allocations: 0 / 485.1 MB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1172, allocations: 0 / 485.1 MB, free: 15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.596e-05/0.1172, allocations: 7.938 kB / 485.1 MB, free: 14.99 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.01437/0.1316, allocations: 3.674 MB / 488.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.1316, allocations: 15.89 kB / 488.8 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002211/0.1319, allocations: 164.7 kB / 488.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003338/0.1322, allocations: 163.2 kB / 489.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001214/0.1334, allocations: 0.8354 MB / 489.9 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001966/0.1336, allocations: 316.7 kB / 490.2 MB, free: 9.672 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/0.1338, allocations: 116.4 kB / 490.4 MB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002737/0.1366, allocations: 1.811 MB / 492.2 MB, free: 7.703 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.1366, allocations: 4 kB / 492.2 MB, free: 7.699 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001392/0.1368, allocations: 52 kB / 492.2 MB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.088e-05/0.1368, allocations: 24 kB / 492.2 MB, free: 7.625 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00262/0.1394, allocations: 1.703 MB / 493.9 MB, free: 5.914 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008913/0.1483, allocations: 6.938 MB / 0.4891 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003573/0.1519, allocations: 3.874 MB / 0.4929 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001536/0.1535, allocations: 1.188 MB / 0.4941 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001599/0.1537, allocations: 37.27 kB / 0.4941 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002068/0.1557, allocations: 1.326 MB / 0.4954 GB, free: 7.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=167): time 3.206e-06/0.1557, allocations: 0 / 0.4954 GB, free: 7.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=167): time 0.2101/0.3658, allocations: 8.963 MB / 0.5042 GB, free: 44.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.078e-05/0.3659, allocations: 122.7 kB / 0.5043 GB, free: 44.26 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/0.367, allocations: 0.7219 MB / 0.505 GB, free: 44.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002555/0.3673, allocations: 78.5 kB / 0.5051 GB, free: 44.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002569/0.3675, allocations: 423.8 kB / 0.5055 GB, free: 44.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003717/0.3679, allocations: 0.5347 MB / 0.506 GB, free: 43.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000591/0.3685, allocations: 339.3 kB / 0.5063 GB, free: 43.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.33e-05/0.3686, allocations: 345.5 kB / 0.5066 GB, free: 43.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001674/0.3703, allocations: 1.111 MB / 0.5077 GB, free: 43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/0.3721, allocations: 1.278 MB / 0.509 GB, free: 42.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003294/0.3754, allocations: 2.398 MB / 0.5113 GB, free: 41.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.3754, allocations: 0.5 kB / 0.5113 GB, free: 41.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006797/0.3822, allocations: 3.732 MB / 0.515 GB, free: 39.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.3823, allocations: 3 kB / 0.515 GB, free: 39.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.3823, allocations: 1.469 kB / 0.515 GB, free: 39.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01429/0.3966, allocations: 5.324 MB / 0.5202 GB, free: 38.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009898/0.3976, allocations: 250.2 kB / 0.5204 GB, free: 38.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005845/0.4035, allocations: 3.434 MB / 0.5238 GB, free: 36.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00133/0.4048, allocations: 187.6 kB / 0.5239 GB, free: 36.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.4049, allocations: 62.48 kB / 0.524 GB, free: 36.59 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.0005253/0.4055, allocations: 338.3 kB / 0.5243 GB, free: 36.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001968/0.4057, allocations: 122.6 kB / 0.5244 GB, free: 36.26 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004366/0.41, allocations: 3.364 MB / 0.5277 GB, free: 34.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.4101, allocations: 16 kB / 0.5277 GB, free: 34.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.4101, allocations: 0.5625 kB / 0.5277 GB, free: 34.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.757e-05/0.4101, allocations: 9.094 kB / 0.5278 GB, free: 34.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005699/0.4158, allocations: 5.706 MB / 0.5333 GB, free: 29.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.4158, allocations: 7.797 kB / 0.5333 GB, free: 29.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000434/0.4163, allocations: 144.7 kB / 0.5335 GB, free: 29.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01128/0.4276, allocations: 3.788 MB / 0.5372 GB, free: 25.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001318/0.4277, allocations: 35.98 kB / 0.5372 GB, free: 25.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005587/0.4333, allocations: 3.505 MB / 0.5406 GB, free: 21.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4333, allocations: 0 / 0.5406 GB, free: 21.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003766/0.4371, allocations: 3.23 MB / 0.5438 GB, free: 18.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002326/0.4373, allocations: 224.9 kB / 0.544 GB, free: 18.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001692/0.4375, allocations: 32 kB / 0.544 GB, free: 18.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.4387, allocations: 120.5 kB / 0.5441 GB, free: 18.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000229/0.4389, allocations: 121.8 kB / 0.5443 GB, free: 18.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.4391, allocations: 59.98 kB / 0.5443 GB, free: 18.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005215/0.4396, allocations: 491 kB / 0.5448 GB, free: 17.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4396, allocations: 4 kB / 0.5448 GB, free: 17.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008752/0.4405, allocations: 453.6 kB / 0.5452 GB, free: 17.23 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.00403/0.4445, allocations: 3.875 MB / 0.549 GB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006391/0.4509, allocations: 3.185 MB / 0.5521 GB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.4509, allocations: 1.688 kB / 0.5521 GB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004563/0.4555, allocations: 1.861 MB / 0.5539 GB, free: 8.301 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008886/0.4564, allocations: 177.7 kB / 0.5541 GB, free: 8.133 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02127/0.4777, allocations: 14.96 MB / 0.5687 GB, free: 9.035 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006134/0.4783, allocations: 1.081 MB / 0.5698 GB, free: 7.922 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005391/0.4789, allocations: 157 kB / 0.5699 GB, free: 7.766 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005469/0.4794, allocations: 455.3 kB / 0.5704 GB, free: 7.32 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4794, allocations: 0 / 0.5704 GB, free: 7.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07271/0.5522, allocations: 42.59 MB / 0.6119 GB, free: 13.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.17, allocations: 14.92 kB / 0.612 GB, free: 13.02 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)