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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007091/0.0007092, allocations: 84.19 kB / 15.75 MB, free: 416 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.0007482/0.0007482, allocations: 177.1 kB / 16.63 MB, free: 6.887 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.251/1.251, allocations: 223.3 MB / 240.7 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.155/0.155, allocations: 8.092 MB / 299.8 MB, free: 2.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000279/0.0002791, allocations: 20 kB / 363 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08949/0.08978, allocations: 52.5 MB / 415.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithTwoOppositeBreakers): time 0.00694/0.09676, allocations: 7.704 MB / 423.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1667/0.2635, allocations: 2.167 MB / 425.3 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005429/0.2641, allocations: 25.22 kB / 425.4 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005317/0.2646, allocations: 248.3 kB / 425.6 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001148/0.2658, allocations: 0.6737 MB / 426.3 MB, free: 34.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002058/0.2679, allocations: 1.295 MB / 427.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001214/0.2691, allocations: 1.679 MB / 429.3 MB, free: 34.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005593/0.2697, allocations: 0.5273 MB / 429.8 MB, free: 33.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004842/0.2701, allocations: 0.6287 MB / 430.4 MB, free: 33.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007156/0.2709, allocations: 0.8378 MB / 431.2 MB, free: 33.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001287/0.271, allocations: 86.09 kB / 431.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004972/0.2715, allocations: 309.1 kB / 431.6 MB, free: 33.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001668/0.2717, allocations: 284.9 kB / 431.9 MB, free: 33.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002033/0.2719, allocations: 335.7 kB / 432.2 MB, free: 33.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001156/0.2731, allocations: 1.737 MB / 434 MB, free: 33.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.2731, allocations: 3.406 kB / 434 MB, free: 33.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2731, allocations: 3.344 kB / 434 MB, free: 33.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.937e-05/0.2731, allocations: 0 / 434 MB, free: 33.32 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.01256/0.2857, allocations: 3.89 MB / 437.9 MB, free: 32.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.2857, allocations: 9.75 kB / 437.9 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002728/0.286, allocations: 190.8 kB / 438.1 MB, free: 32.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002695/0.2863, allocations: 186.6 kB / 438.2 MB, free: 32.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009839/0.2873, allocations: 0.9098 MB / 439.2 MB, free: 31.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.99e-05/0.2874, allocations: 167.3 kB / 439.3 MB, free: 31.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001747/0.2876, allocations: 134.8 kB / 439.5 MB, free: 31.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002493/0.2901, allocations: 2.002 MB / 441.5 MB, free: 31.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.2901, allocations: 8.594 kB / 441.5 MB, free: 31.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001307/0.2902, allocations: 53.91 kB / 441.5 MB, free: 31.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.2902, allocations: 31.02 kB / 441.5 MB, free: 31.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002465/0.2927, allocations: 1.941 MB / 443.5 MB, free: 31.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007844/0.3006, allocations: 8.263 MB / 451.8 MB, free: 25.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003138/0.3037, allocations: 4.575 MB / 456.3 MB, free: 21.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00145/0.3052, allocations: 1.4 MB / 457.7 MB, free: 21.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001841/0.3054, allocations: 46.2 kB / 457.8 MB, free: 21.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001756/0.3071, allocations: 1.431 MB / 459.2 MB, free: 20.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=201): time 3.126e-06/0.3072, allocations: 0 / 459.2 MB, free: 20.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=201): time 0.04828/0.3554, allocations: 13 MB / 472.2 MB, free: 17.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.531e-05/0.3556, allocations: 175.8 kB / 472.4 MB, free: 17.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/0.3567, allocations: 0.8096 MB / 473.2 MB, free: 16.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002782/0.357, allocations: 73.95 kB / 473.3 MB, free: 16.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003133/0.3573, allocations: 430.3 kB / 473.7 MB, free: 16.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005339/0.3579, allocations: 0.6637 MB / 474.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.358, allocations: 43.91 kB / 474.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3582, allocations: 448 kB / 474.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001793/0.36, allocations: 1.248 MB / 476.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001874/0.3618, allocations: 1.424 MB / 477.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00192/0.3638, allocations: 1.375 MB / 478.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.3638, allocations: 0 / 478.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01132/0.3751, allocations: 5.274 MB / 484.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.3751, allocations: 8.812 kB / 484.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.3752, allocations: 1.219 kB / 484.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01165/0.3868, allocations: 3.827 MB / 488 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/0.3882, allocations: 314.7 kB / 488.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0224/0.4106, allocations: 14.43 MB / 0.4909 GB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001806/0.4124, allocations: 198 kB / 0.4911 GB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001723/0.4126, allocations: 71.98 kB / 0.4912 GB, free: 10.31 MB / 366.1 MB 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,$PRE.cmd.pulseStart,cmd.pulseStart,n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 186 * 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.0007053/0.4133, allocations: 365.6 kB / 0.4915 GB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002231/0.4136, allocations: 138.3 kB / 0.4917 GB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01195/0.4255, allocations: 5.206 MB / 0.4968 GB, free: 4.586 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-05/0.4256, allocations: 20 kB / 0.4968 GB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.4256, allocations: 0 / 0.4968 GB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-05/0.4256, allocations: 15.95 kB / 0.4968 GB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01413/0.4397, allocations: 7.73 MB / 0.5043 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.4398, allocations: 0 / 0.5043 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007248/0.4405, allocations: 243.6 kB / 0.5046 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01116/0.4517, allocations: 3.276 MB / 0.5078 GB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001626/0.4518, allocations: 47.98 kB / 0.5078 GB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02323/0.4751, allocations: 14.22 MB / 0.5217 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4751, allocations: 4 kB / 0.5217 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0117/0.4868, allocations: 5.001 MB / 0.5266 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003703/0.4872, allocations: 258.7 kB / 0.5268 GB, free: 5.566 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002178/0.4875, allocations: 39.94 kB / 0.5269 GB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/0.4886, allocations: 139.4 kB / 0.527 GB, free: 5.395 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004824/0.4891, allocations: 170.8 kB / 0.5272 GB, free: 5.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001571/0.4892, allocations: 67.98 kB / 0.5272 GB, free: 5.164 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007588/0.49, allocations: 0.5341 MB / 0.5278 GB, free: 4.629 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.49, allocations: 0 / 0.5278 GB, free: 4.629 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001814/0.4918, allocations: 0.7338 MB / 0.5285 GB, free: 3.895 MB / 398.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: 3 ($whenCondition1,cmd.pulseStart,n.y) * Number of discrete states: 0 () * Number of clocked 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 {28 58} Notification: Performance of Backend phase and start with SimCode phase: time 0.01137/0.5032, allocations: 5.632 MB / 0.534 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007723/0.511, allocations: 4.085 MB / 0.538 GB, free: 10.13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.511, allocations: 5.281 kB / 0.538 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005285/0.5163, allocations: 2.553 MB / 0.5405 GB, free: 7.562 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009692/0.5173, allocations: 171.2 kB / 0.5406 GB, free: 7.395 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02299/0.5403, allocations: 13.09 MB / 0.5534 GB, free: 10.04 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008748/0.5412, allocations: 1.224 MB / 0.5546 GB, free: 8.781 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008522/0.5421, allocations: 202 kB / 0.5548 GB, free: 8.582 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007408/0.5428, allocations: 0.5383 MB / 0.5553 GB, free: 8.047 MB / 430.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5428, allocations: 2.188 kB / 0.5553 GB, free: 8.047 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2295/0.7724, allocations: 60.17 MB / 0.6141 GB, free: 117.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001384/0.7725, allocations: 246.6 kB / 0.6143 GB, free: 117.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.501/3.274, allocations: 3.5 kB / 0.6143 GB, free: 117.3 MB / 446.1 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) Environment - environmentSimulation: