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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 182.3 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 221.4 MB / 235.1 MB, free: 14.44 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008701/0.0008701, allocations: 94.95 kB / 286.1 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05585/0.05585, allocations: 8.107 MB / 345.1 MB, free: 1.93 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.243e-05/3.245e-05, allocations: 4 kB / 405.6 MB, free: 61.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09875/0.0988, allocations: 52.53 MB / 458.1 MB, free: 9.359 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3726/0.4715, allocations: 82.02 MB / 0.5274 GB, free: 4.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001966/0.4717, allocations: 72.08 kB / 0.5275 GB, free: 3.984 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.102/0.5737, allocations: 38.92 MB / 0.5655 GB, free: 3.516 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5738, allocations: 0 / 0.5655 GB, free: 3.516 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000115/0.5739, allocations: 24 kB / 0.5655 GB, free: 3.492 MB / 378.7 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.01024/0.5841, allocations: 2.202 MB / 0.5677 GB, free: 1.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.57e-05/0.5842, allocations: 8.031 kB / 0.5677 GB, free: 1.223 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008375/0.5851, allocations: 164.5 kB / 0.5679 GB, free: 1.051 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001152/0.5862, allocations: 158.3 kB / 0.568 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002416/0.5887, allocations: 0.8778 MB / 0.5689 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002591/0.589, allocations: 303.7 kB / 0.5692 GB, free: 15.63 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004309/0.5894, allocations: 99.94 kB / 0.5693 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004067/0.5935, allocations: 1.78 MB / 0.571 GB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.5935, allocations: 0 / 0.571 GB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002651/0.5938, allocations: 56 kB / 0.571 GB, free: 13.65 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.452e-05/0.5938, allocations: 24 kB / 0.5711 GB, free: 13.63 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00324/0.5971, allocations: 1.683 MB / 0.5727 GB, free: 11.94 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01299/0.6101, allocations: 7.458 MB / 0.58 GB, free: 4.004 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004268/0.6144, allocations: 3.833 MB / 0.5837 GB, free: 15.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001884/0.6163, allocations: 1.158 MB / 0.5849 GB, free: 14.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003347/0.6167, allocations: 122.3 kB / 0.585 GB, free: 14.49 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002707/0.6194, allocations: 1.303 MB / 0.5863 GB, free: 13.17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=167): time 7.985e-06/0.6194, allocations: 0 / 0.5863 GB, free: 13.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=167): time 0.007718/0.6272, allocations: 3.275 MB / 0.5895 GB, free: 9.887 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.253e-05/0.6273, allocations: 120.8 kB / 0.5896 GB, free: 9.742 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001311/0.6286, allocations: 0.664 MB / 0.5902 GB, free: 9.074 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002701/0.6289, allocations: 69.69 kB / 0.5903 GB, free: 9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004174/0.6293, allocations: 433.1 kB / 0.5907 GB, free: 8.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006687/0.63, allocations: 0.5429 MB / 0.5912 GB, free: 8.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/0.6302, allocations: 28 kB / 0.5913 GB, free: 7.992 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.6303, allocations: 369.9 kB / 0.5916 GB, free: 7.625 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001638/0.632, allocations: 0.9531 MB / 0.5925 GB, free: 6.672 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001838/0.6338, allocations: 1.094 MB / 0.5936 GB, free: 5.566 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001873/0.6357, allocations: 1.017 MB / 0.5946 GB, free: 4.551 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.6357, allocations: 0 / 0.5946 GB, free: 4.551 MB / 410.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.008157/0.6439, allocations: 3.439 MB / 0.598 GB, free: 1.098 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.773e-05/0.644, allocations: 8 kB / 0.598 GB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.644, allocations: 0 / 0.598 GB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01388/0.6579, allocations: 3.753 MB / 0.6016 GB, free: 13.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008355/0.6588, allocations: 171.7 kB / 0.6018 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006074/0.6649, allocations: 3.279 MB / 0.605 GB, free: 9.859 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/0.6666, allocations: 146.8 kB / 0.6051 GB, free: 9.715 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001582/0.6668, allocations: 55.97 kB / 0.6052 GB, free: 9.66 MB / 426.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 114 * 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 {28 56} Notification: Performance of prepare postOptimizeDAE: time 0.000428/0.6673, allocations: 193.8 kB / 0.6054 GB, free: 9.469 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002882/0.6675, allocations: 126.6 kB / 0.6055 GB, free: 9.344 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007447/0.675, allocations: 3.625 MB / 0.609 GB, free: 5.699 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.899e-05/0.6751, allocations: 23.94 kB / 0.6091 GB, free: 5.676 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.6751, allocations: 0 / 0.6091 GB, free: 5.676 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.211e-05/0.6751, allocations: 15.91 kB / 0.6091 GB, free: 5.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009803/0.6849, allocations: 6.135 MB / 0.6151 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.685, allocations: 0 / 0.6151 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000552/0.6855, allocations: 151.7 kB / 0.6152 GB, free: 15.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01257/0.6981, allocations: 3.3 MB / 0.6184 GB, free: 12 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002439/0.6984, allocations: 39.97 kB / 0.6185 GB, free: 11.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005662/0.704, allocations: 3.317 MB / 0.6217 GB, free: 8.617 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.7041, allocations: 0 / 0.6217 GB, free: 8.617 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006086/0.7102, allocations: 3.326 MB / 0.625 GB, free: 5.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004105/0.7106, allocations: 231.1 kB / 0.6252 GB, free: 5.023 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000213/0.7108, allocations: 35.95 kB / 0.6252 GB, free: 4.988 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/0.7123, allocations: 143.9 kB / 0.6254 GB, free: 4.848 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002874/0.7126, allocations: 117.8 kB / 0.6255 GB, free: 4.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001639/0.7127, allocations: 67.97 kB / 0.6255 GB, free: 4.664 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007667/0.7135, allocations: 0.5109 MB / 0.626 GB, free: 4.156 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.7135, allocations: 4 kB / 0.626 GB, free: 4.152 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001037/0.7146, allocations: 427.6 kB / 0.6264 GB, free: 3.734 MB / 442.7 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,feeder2.load2.degradedMode,feeder2.load3.degradedMode,feeder2.load4.degradedMode,feeder2.load1.degradedMode,feeder1.load1.degradedMode,feeder1.load4.degradedMode) * 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 {28 64} Notification: Performance of Backend phase and start with SimCode phase: time 0.006049/0.7206, allocations: 3.96 MB / 0.6303 GB, free: 15.76 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006413/0.7271, allocations: 2.669 MB / 0.6329 GB, free: 13.08 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.359e-05/0.7271, allocations: 5.938 kB / 0.6329 GB, free: 13.07 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004433/0.7315, allocations: 1.576 MB / 0.6345 GB, free: 11.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009954/0.7326, allocations: 136.9 kB / 0.6346 GB, free: 11.37 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004579/0.7371, allocations: 2.042 MB / 0.6366 GB, free: 9.289 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000718/0.7379, allocations: 1.112 MB / 0.6377 GB, free: 8.145 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0006377/0.7385, allocations: 153 kB / 0.6378 GB, free: 7.992 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006113/0.7392, allocations: 447.3 kB / 0.6382 GB, free: 7.555 MB / 458.7 MB Notification: Performance of SimCode: time 9.92e-07/0.7392, allocations: 4 kB / 0.6382 GB, free: 7.551 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3073/1.046, allocations: 39.59 MB / 0.6769 GB, free: 131.9 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001531/1.047, allocations: 199.5 kB / 0.6771 GB, free: 131.7 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.95/3.997, allocations: 0 / 0.6771 GB, free: 131.7 MB / 458.7 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)