Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",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.001534/0.001535, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001668/0.001668, allocations: 191 kB / 18 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.087/2.087, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2998/0.2998, allocations: 38.03 MB / 329.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002471/0.002471, allocations: 63.89 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5393/0.5418, allocations: 58.05 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.008704/0.5506, allocations: 5.304 MB / 0.5088 GB, free: 3.797 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003022/0.5536, allocations: 1.158 MB / 0.5099 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004838/0.5542, allocations: 17.69 kB / 0.5099 GB, free: 2.965 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005354/0.5547, allocations: 88.19 kB / 0.51 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001197/0.556, allocations: 322.7 kB / 0.5103 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005347/0.5566, allocations: 151.1 kB / 0.5105 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00116/0.5577, allocations: 0.729 MB / 0.5112 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004032/0.5582, allocations: 188.2 kB / 0.5114 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007768/0.559, allocations: 322.7 kB / 0.5117 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000912/0.5599, allocations: 363.3 kB / 0.512 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.56, allocations: 40.94 kB / 0.5121 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.5602, allocations: 45.59 kB / 0.5121 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003343/0.5605, allocations: 201.8 kB / 0.5123 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003773/0.5609, allocations: 259.5 kB / 0.5125 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001206/0.5621, allocations: 0.5501 MB / 0.5131 GB, free: 1.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.17e-05/0.5621, allocations: 0.5156 kB / 0.5131 GB, free: 1.527 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.5621, allocations: 0 / 0.5131 GB, free: 1.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.511e-05/0.5622, allocations: 5.094 kB / 0.5131 GB, free: 1.523 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002378/0.5646, allocations: 0.8461 MB / 0.5139 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.89e-05/0.5646, allocations: 12.55 kB / 0.5139 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001203/0.5648, allocations: 76.69 kB / 0.514 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.5649, allocations: 59.77 kB / 0.5141 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001013/0.5659, allocations: 454 kB / 0.5145 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.078e-05/0.566, allocations: 33.77 kB / 0.5145 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.129e-05/0.5661, allocations: 35.66 kB / 0.5146 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.5673, allocations: 484 kB / 0.515 GB, free: 196 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/0.5673, allocations: 5.312 kB / 0.515 GB, free: 192 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.125e-05/0.5674, allocations: 16.58 kB / 0.515 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001616/0.5676, allocations: 29.47 kB / 0.5151 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009606/0.5685, allocations: 365.6 kB / 0.5154 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003735/0.5723, allocations: 1.716 MB / 0.5171 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.5734, allocations: 399.6 kB / 0.5175 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007218/0.5741, allocations: 209.3 kB / 0.5177 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.133e-05/0.5742, allocations: 7.156 kB / 0.5177 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006762/0.5749, allocations: 280.8 kB / 0.5179 GB, free: 14.38 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 3.126e-06/0.5749, allocations: 0 / 0.5179 GB, free: 14.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.003734/0.5786, allocations: 1.406 MB / 0.5193 GB, free: 13.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/0.5788, allocations: 141.6 kB / 0.5195 GB, free: 13.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007998/0.5796, allocations: 369.5 kB / 0.5198 GB, free: 13.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.378e-05/0.5797, allocations: 42.42 kB / 0.5198 GB, free: 13.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003153/0.58, allocations: 259.2 kB / 0.5201 GB, free: 12.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.5802, allocations: 115.7 kB / 0.5202 GB, free: 12.74 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002139/0.5804, allocations: 83.8 kB / 0.5203 GB, free: 12.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001998/0.5806, allocations: 350.2 kB / 0.5206 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000398/0.581, allocations: 134.1 kB / 0.5207 GB, free: 12.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004992/0.5815, allocations: 255.8 kB / 0.521 GB, free: 12.13 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008696/0.5824, allocations: 439.8 kB / 0.5214 GB, free: 11.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.5824, allocations: 1.312 kB / 0.5214 GB, free: 11.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00148/0.5839, allocations: 0.5412 MB / 0.5219 GB, free: 11.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.098e-05/0.584, allocations: 33.89 kB / 0.522 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.584, allocations: 7.953 kB / 0.522 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004767/0.5845, allocations: 84.22 kB / 0.5221 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004589/0.585, allocations: 68.41 kB / 0.5221 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003395/0.5884, allocations: 3.007 MB / 0.5251 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004726/0.5889, allocations: 22.33 kB / 0.5251 GB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-05/0.589, allocations: 17.75 kB / 0.5251 GB, free: 8.559 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 18 (system.initime,breaker.breaker_1.opening,breaker.breaker_1.t0,$PRE.breaker.breaker_1.t0,breaker.breaker_1.closed,breaker.breaker_1.open,$PRE.breaker.breaker_1.open,breaker.breaker_1.arc,$PRE.breaker.breaker_1.arc,relay.y[1],$PRE.relay.y[1],$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,relay.cnt,$PRE.relay.cnt,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004521/0.5895, allocations: 249.3 kB / 0.5253 GB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.5896, allocations: 42.97 kB / 0.5254 GB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00145/0.591, allocations: 0.4884 MB / 0.5259 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.5911, allocations: 3.25 kB / 0.5259 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.5911, allocations: 6.312 kB / 0.5259 GB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.5911, allocations: 2.109 kB / 0.5259 GB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002592/0.5937, allocations: 1.063 MB / 0.5269 GB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/0.5937, allocations: 1.219 kB / 0.5269 GB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002785/0.594, allocations: 41.52 kB / 0.5269 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004254/0.5945, allocations: 92.33 kB / 0.527 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.85e-05/0.5945, allocations: 10.81 kB / 0.527 GB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003625/0.5982, allocations: 3.009 MB / 0.53 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.5982, allocations: 1.25 kB / 0.53 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001915/0.6001, allocations: 0.7771 MB / 0.5307 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002375/0.6004, allocations: 115.3 kB / 0.5309 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001383/0.6005, allocations: 19.62 kB / 0.5309 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004085/0.601, allocations: 20.83 kB / 0.5309 GB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001742/0.6011, allocations: 34.66 kB / 0.5309 GB, free: 3.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.724e-05/0.6012, allocations: 11.2 kB / 0.5309 GB, free: 3.988 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005073/0.6017, allocations: 261.4 kB / 0.5312 GB, free: 3.859 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6017, allocations: 0 / 0.5312 GB, free: 3.859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009888/0.6027, allocations: 113.7 kB / 0.5313 GB, free: 3.848 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 13 (breaker.breaker_1.closed,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,relay.y[1],relay.cnt,breaker.breaker_1.arc,breaker.breaker_1.open,breaker.breaker_1.t0,breaker.breaker_1.opening,system.initime) * Number of discrete states: 5 (breaker.breaker_1.arc,relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002356/0.6051, allocations: 1.334 MB / 0.5326 GB, free: 2.883 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001557/0.6067, allocations: 0.6295 MB / 0.5332 GB, free: 2.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.6067, allocations: 0 / 0.5332 GB, free: 2.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/0.6078, allocations: 495.2 kB / 0.5337 GB, free: 2.129 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.6088, allocations: 101.4 kB / 0.5338 GB, free: 2.082 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.6194, allocations: 4.126 MB / 0.5378 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009576/0.6205, allocations: 0.864 MB / 0.5387 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004802/0.621, allocations: 71.58 kB / 0.5387 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004127/0.6214, allocations: 157.9 kB / 0.5389 GB, free: 14.65 MB / 414.1 MB Notification: Performance of SimCode: time 1.964e-06/0.6214, allocations: 0 / 0.5389 GB, free: 14.65 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07273/0.6942, allocations: 9.483 MB / 0.5481 GB, free: 9.566 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.92/17.62, allocations: 3.984 kB / 0.5481 GB, free: 9.562 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)