Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.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.DoubleNetworkWithTwoOppositeBreakers,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers",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.001055/0.001058, allocations: 177.6 kB / 8.048 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.668/1.668, allocations: 221.5 MB / 230 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008549/0.0008548, allocations: 96.61 kB / 280.9 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04428/0.04428, allocations: 8.093 MB / 339.8 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.195e-05/2.174e-05, allocations: 3.125 kB / 398.6 MB, free: 49.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.09537, allocations: 52.52 MB / 451.1 MB, free: 5.391 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1275/0.2229, allocations: 82.49 MB / 0.5211 GB, free: 2.781 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.2232, allocations: 67.97 kB / 0.5211 GB, free: 2.715 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4004/0.6236, allocations: 47.01 MB / 0.5671 GB, free: 49.51 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.6237, allocations: 3.938 kB / 0.5671 GB, free: 49.5 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.702e-05/0.6237, allocations: 24 kB / 0.5671 GB, free: 49.48 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.009147/0.6329, allocations: 2.416 MB / 0.5694 GB, free: 47.01 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.633, allocations: 11.98 kB / 0.5694 GB, free: 47 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008397/0.6338, allocations: 185.9 kB / 0.5696 GB, free: 46.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.6356, allocations: 0.9826 MB / 0.5706 GB, free: 45.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.23e-05/0.6357, allocations: 105.7 kB / 0.5707 GB, free: 45.67 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001771/0.6359, allocations: 68 kB / 0.5708 GB, free: 45.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002603/0.6385, allocations: 1.856 MB / 0.5726 GB, free: 43.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002625/0.6412, allocations: 1.825 MB / 0.5743 GB, free: 41.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.6412, allocations: 4 kB / 0.5743 GB, free: 41.88 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001531/0.6414, allocations: 0 / 0.5743 GB, free: 41.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/0.6414, allocations: 32 kB / 0.5744 GB, free: 41.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0107/0.6521, allocations: 8.614 MB / 0.5828 GB, free: 32.56 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003156/0.6553, allocations: 4.304 MB / 0.587 GB, free: 27.9 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001438/0.6568, allocations: 1.311 MB / 0.5883 GB, free: 26.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000188/0.657, allocations: 41.94 kB / 0.5883 GB, free: 26.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001781/0.6588, allocations: 1.335 MB / 0.5896 GB, free: 25.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=199): time 4.809e-06/0.6588, allocations: 0 / 0.5896 GB, free: 25.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=199): time 0.01323/0.672, allocations: 4.615 MB / 0.5941 GB, free: 20.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.365e-05/0.6721, allocations: 176.2 kB / 0.5943 GB, free: 20.37 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001037/0.6732, allocations: 0.7118 MB / 0.595 GB, free: 19.65 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003687/0.6736, allocations: 29.7 kB / 0.595 GB, free: 19.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003013/0.6739, allocations: 458.1 kB / 0.5955 GB, free: 19.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005214/0.6744, allocations: 0.6271 MB / 0.5961 GB, free: 18.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.6745, allocations: 4 kB / 0.5961 GB, free: 18.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.885e-05/0.6746, allocations: 369.9 kB / 0.5964 GB, free: 18.15 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001317/0.6759, allocations: 1.023 MB / 0.5974 GB, free: 17.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.6772, allocations: 1.151 MB / 0.5985 GB, free: 15.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002651/0.6799, allocations: 1.213 MB / 0.5997 GB, free: 14.76 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.433e-06/0.6799, allocations: 7.938 kB / 0.5997 GB, free: 14.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.01238/0.6923, allocations: 4.721 MB / 0.6043 GB, free: 10.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.6924, allocations: 7.984 kB / 0.6044 GB, free: 10 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.6924, allocations: 0 / 0.6044 GB, free: 10 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01167/0.7041, allocations: 3.07 MB / 0.6074 GB, free: 6.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009531/0.7051, allocations: 219.6 kB / 0.6076 GB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02496/0.73, allocations: 14.01 MB / 0.6212 GB, free: 8.562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001671/0.7318, allocations: 118.6 kB / 0.6214 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001605/0.7319, allocations: 59.97 kB / 0.6214 GB, free: 8.387 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: feeder1.load1.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real feeder2.load1.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real feeder1.terminal.i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real feeder1.terminal.i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,brk2.BrkOpen,$PRE.cmd.pulseStart,cmd.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 58} Notification: Performance of prepare postOptimizeDAE: time 0.0004461/0.7324, allocations: 133 kB / 0.6215 GB, free: 8.254 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01369/0.7461, allocations: 4.603 MB / 0.626 GB, free: 3.641 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007958/0.7469, allocations: 146.4 kB / 0.6262 GB, free: 3.496 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01479/0.7617, allocations: 5.065 MB / 0.6311 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.233e-05/0.7618, allocations: 20 kB / 0.6311 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.7618, allocations: 0 / 0.6311 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.246e-05/0.7619, allocations: 15.95 kB / 0.6312 GB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01879/0.7807, allocations: 7.789 MB / 0.6388 GB, free: 6.527 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/0.7807, allocations: 4 kB / 0.6388 GB, free: 6.523 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.7818, allocations: 231.7 kB / 0.639 GB, free: 6.297 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01316/0.7949, allocations: 3.074 MB / 0.642 GB, free: 3.215 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005568/0.7956, allocations: 15.97 kB / 0.642 GB, free: 3.199 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02846/0.824, allocations: 14.1 MB / 0.6558 GB, free: 4.977 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.968e-06/0.8241, allocations: 0 / 0.6558 GB, free: 4.977 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01435/0.8385, allocations: 4.878 MB / 0.6605 GB, free: 72 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006703/0.8392, allocations: 262.8 kB / 0.6608 GB, free: 15.79 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004165/0.8396, allocations: 3.953 kB / 0.6608 GB, free: 15.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/0.8412, allocations: 87.91 kB / 0.6609 GB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000586/0.8418, allocations: 174.5 kB / 0.661 GB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001706/0.8419, allocations: 71.97 kB / 0.6611 GB, free: 15.46 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008363/0.8428, allocations: 0.546 MB / 0.6616 GB, free: 14.92 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8428, allocations: 0 / 0.6616 GB, free: 14.92 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002297/0.8451, allocations: 0.6166 MB / 0.6622 GB, free: 14.3 MB / 426.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: 3 ($whenCondition1,brk2.BrkOpen,cmd.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {29 57} Notification: Performance of Backend phase and start with SimCode phase: time 0.01416/0.8593, allocations: 5.462 MB / 0.6676 GB, free: 8.809 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009448/0.8688, allocations: 3.588 MB / 0.6711 GB, free: 5.211 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/0.8688, allocations: 1.062 kB / 0.6711 GB, free: 5.211 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007206/0.8761, allocations: 2.471 MB / 0.6735 GB, free: 2.727 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001083/0.8772, allocations: 112.2 kB / 0.6736 GB, free: 2.621 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004562/0.8818, allocations: 2.267 MB / 0.6758 GB, free: 308 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007658/0.8825, allocations: 1.247 MB / 0.677 GB, free: 15.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007643/0.8833, allocations: 202 kB / 0.6772 GB, free: 14.82 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007035/0.884, allocations: 0.5461 MB / 0.6778 GB, free: 14.28 MB / 442.7 MB Notification: Performance of SimCode: time 5.62e-07/0.884, allocations: 0 / 0.6778 GB, free: 14.28 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3262/1.21, allocations: 56.68 MB / 0.7331 GB, free: 107.7 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001372/1.21, allocations: 171.9 kB / 0.7333 GB, free: 107.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.258/4.468, allocations: 1.562 kB / 0.7333 GB, free: 107.5 MB / 442.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithTwoOppositeBreakers.fmu > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers.pipe 2>&1)