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.000874/0.0008739, allocations: 97.53 kB / 15.73 MB, free: 440 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.0009501/0.0009501, allocations: 180.5 kB / 16.62 MB, free: 6.426 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.254/1.254, allocations: 223.2 MB / 240.5 MB, free: 5.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1339/0.1339, allocations: 8.085 MB / 299.7 MB, free: 2.855 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002733/0.0002733, allocations: 11.98 kB / 362.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09703/0.09731, allocations: 52.52 MB / 415.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithVariableLoads): time 0.00489/0.1022, allocations: 5.242 MB / 420.6 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003739/0.106, allocations: 2.455 MB / 423.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004627/0.1065, allocations: 23.94 kB / 423.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004977/0.107, allocations: 210.6 kB / 423.3 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1683/0.2753, allocations: 0.691 MB / 424 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002705/0.2781, allocations: 1.264 MB / 425.3 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00187/0.2799, allocations: 1.088 MB / 426.3 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005406/0.2805, allocations: 436.7 kB / 426.8 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004508/0.2809, allocations: 0.5367 MB / 427.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006711/0.2816, allocations: 0.6727 MB / 428 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.2817, allocations: 74.28 kB / 428.1 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006032/0.2824, allocations: 304.9 kB / 428.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001682/0.2825, allocations: 253.5 kB / 428.6 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001801/0.2827, allocations: 286.4 kB / 428.9 MB, free: 34.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001112/0.2838, allocations: 1.551 MB / 430.4 MB, free: 34.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.2838, allocations: 0 / 430.4 MB, free: 34.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.2839, allocations: 3.312 kB / 430.4 MB, free: 34.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.617e-05/0.2839, allocations: 0 / 430.4 MB, free: 34.18 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.01397/0.2978, allocations: 3.482 MB / 433.9 MB, free: 33.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.2979, allocations: 9.719 kB / 433.9 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005258/0.2984, allocations: 165.8 kB / 434.1 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000349/0.2988, allocations: 163.2 kB / 434.2 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.3, allocations: 0.8141 MB / 435.1 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/0.3001, allocations: 318.2 kB / 435.4 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001873/0.3003, allocations: 116.1 kB / 435.5 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002483/0.3028, allocations: 1.804 MB / 437.3 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.3028, allocations: 2.406 kB / 437.3 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001501/0.303, allocations: 48.97 kB / 437.3 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.748e-05/0.303, allocations: 30.2 kB / 437.4 MB, free: 32.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002169/0.3052, allocations: 1.718 MB / 439.1 MB, free: 32.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008158/0.3134, allocations: 7.094 MB / 446.2 MB, free: 28.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002623/0.316, allocations: 3.862 MB / 450 MB, free: 25.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001423/0.3162, allocations: 33.95 kB / 450.1 MB, free: 25.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001717/0.3179, allocations: 1.311 MB / 451.4 MB, free: 25.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=167): time 3.467e-06/0.3179, allocations: 3.375 kB / 451.4 MB, free: 25.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=167): time 0.03037/0.3483, allocations: 8.852 MB / 460.2 MB, free: 22.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/0.3484, allocations: 126.5 kB / 460.4 MB, free: 22.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009168/0.3493, allocations: 0.7369 MB / 461.1 MB, free: 22.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002409/0.3496, allocations: 76.52 kB / 461.2 MB, free: 22.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002269/0.3498, allocations: 423.6 kB / 461.6 MB, free: 21.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003859/0.3502, allocations: 0.5348 MB / 462.1 MB, free: 21.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.3503, allocations: 36.75 kB / 462.2 MB, free: 21.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.3505, allocations: 419.9 kB / 462.6 MB, free: 21.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001475/0.352, allocations: 1.117 MB / 463.7 MB, free: 20.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.3536, allocations: 1.268 MB / 465 MB, free: 19.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001699/0.3553, allocations: 1.185 MB / 466.1 MB, free: 19.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-06/0.3553, allocations: 4.406 kB / 466.1 MB, free: 19.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006977/0.3623, allocations: 3.789 MB / 469.9 MB, free: 17.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.3624, allocations: 9.859 kB / 469.9 MB, free: 17.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.3624, allocations: 1.781 kB / 469.9 MB, free: 17.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01516/0.3776, allocations: 5.146 MB / 475.1 MB, free: 16.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/0.3789, allocations: 254.6 kB / 475.3 MB, free: 16.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006767/0.3856, allocations: 3.412 MB / 478.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001837/0.3875, allocations: 194.6 kB / 478.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001811/0.3877, allocations: 68.75 kB / 479 MB, free: 14.77 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.0007691/0.3885, allocations: 348.8 kB / 479.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002861/0.3888, allocations: 122.6 kB / 479.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005013/0.3938, allocations: 3.353 MB / 482.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/0.3938, allocations: 16.39 kB / 482.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3938, allocations: 2.938 kB / 482.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-05/0.3939, allocations: 8.719 kB / 482.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007053/0.4009, allocations: 5.734 MB / 488.6 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.401, allocations: 0 / 488.6 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004841/0.4014, allocations: 149.4 kB / 488.7 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01242/0.4139, allocations: 3.842 MB / 492.6 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002553/0.4142, allocations: 39.98 kB / 492.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00561/0.4198, allocations: 3.459 MB / 496.1 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4198, allocations: 7.375 kB / 496.1 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004359/0.4242, allocations: 3.213 MB / 499.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003188/0.4245, allocations: 223.2 kB / 499.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002071/0.4247, allocations: 36 kB / 499.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001343/0.4261, allocations: 138.1 kB / 499.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000252/0.4263, allocations: 129.7 kB / 499.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001396/0.4265, allocations: 59.98 kB / 499.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007108/0.4272, allocations: 0.4912 MB / 0.4886 GB, free: 13.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4272, allocations: 0 / 0.4886 GB, free: 13.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001114/0.4283, allocations: 459.5 kB / 0.4891 GB, free: 13.18 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.004995/0.4333, allocations: 3.837 MB / 0.4928 GB, free: 9.328 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007197/0.4405, allocations: 3.146 MB / 0.4959 GB, free: 6.184 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.4406, allocations: 1.688 kB / 0.4959 GB, free: 6.184 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004963/0.4455, allocations: 1.78 MB / 0.4976 GB, free: 4.406 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008301/0.4464, allocations: 130.3 kB / 0.4977 GB, free: 4.285 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005654/0.452, allocations: 4.198 MB / 0.5018 GB, free: 12 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006728/0.4527, allocations: 1.108 MB / 0.5029 GB, free: 14.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00064/0.4534, allocations: 165 kB / 0.5031 GB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005854/0.454, allocations: 459.2 kB / 0.5035 GB, free: 14.26 MB / 382.1 MB Notification: Performance of SimCode: time 7.02e-07/0.454, allocations: 0 / 0.5035 GB, free: 14.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05268/0.5067, allocations: 37.35 MB / 0.54 GB, free: 9.172 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001559/0.5068, allocations: 231.3 kB / 0.5402 GB, free: 8.934 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.275/2.782, allocations: 0 / 0.5402 GB, free: 8.934 MB / 414.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: