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.001808/0.001808, 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.002119/0.002119, allocations: 189.4 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 1.505/1.505, 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.2028/0.2028, allocations: 38.04 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 68.14 kB / 457.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.3548, allocations: 58.06 MB / 0.5036 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.005739/0.3606, allocations: 5.292 MB / 0.5088 GB, free: 3.828 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002077/0.3627, allocations: 1.166 MB / 0.5099 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002495/0.363, allocations: 13.88 kB / 0.5099 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003406/0.3633, allocations: 89 kB / 0.51 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006808/0.364, allocations: 315.1 kB / 0.5103 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003388/0.3644, allocations: 156 kB / 0.5105 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007078/0.3651, allocations: 0.7191 MB / 0.5112 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002662/0.3654, allocations: 193 kB / 0.5114 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004299/0.3658, allocations: 319.4 kB / 0.5117 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005505/0.3664, allocations: 362.9 kB / 0.512 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.313e-05/0.3665, allocations: 41.31 kB / 0.5121 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.3666, allocations: 44.81 kB / 0.5121 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002253/0.3668, allocations: 198 kB / 0.5123 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002455/0.3671, allocations: 256 kB / 0.5125 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006689/0.3677, allocations: 0.5536 MB / 0.5131 GB, free: 1.559 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3678, allocations: 0 / 0.5131 GB, free: 1.559 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3678, allocations: 4.609 kB / 0.5131 GB, free: 1.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.3678, allocations: 1.156 kB / 0.5131 GB, free: 1.555 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.001426/0.3692, allocations: 0.845 MB / 0.5139 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.3693, allocations: 14.39 kB / 0.5139 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.123e-05/0.3693, allocations: 79.8 kB / 0.514 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.462e-05/0.3694, allocations: 55.81 kB / 0.514 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006235/0.3701, allocations: 450.6 kB / 0.5145 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.342e-05/0.3701, allocations: 31.5 kB / 0.5145 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.405e-05/0.3702, allocations: 37.66 kB / 0.5145 GB, free: 472 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007081/0.3709, allocations: 488.2 kB / 0.515 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.3709, allocations: 1.219 kB / 0.515 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.829e-05/0.371, allocations: 16.33 kB / 0.515 GB, free: 216 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001099/0.3711, allocations: 38.62 kB / 0.5151 GB, free: 208 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005908/0.3717, allocations: 360.6 kB / 0.5154 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00279/0.3745, allocations: 1.718 MB / 0.5171 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008663/0.3754, allocations: 399.7 kB / 0.5175 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005434/0.3759, allocations: 208.8 kB / 0.5177 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.471e-05/0.376, allocations: 3.219 kB / 0.5177 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005643/0.3766, allocations: 277 kB / 0.5179 GB, free: 14.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.916e-06/0.3766, allocations: 4 kB / 0.5179 GB, free: 14.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.002895/0.3795, allocations: 1.401 MB / 0.5193 GB, free: 13.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.3796, allocations: 141.5 kB / 0.5194 GB, free: 13.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000556/0.3802, allocations: 378.4 kB / 0.5198 GB, free: 13.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.142e-05/0.3803, allocations: 33.56 kB / 0.5198 GB, free: 13.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002493/0.3805, allocations: 264 kB / 0.5201 GB, free: 12.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.3806, allocations: 116.5 kB / 0.5202 GB, free: 12.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.3808, allocations: 82.23 kB / 0.5203 GB, free: 12.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.381, allocations: 351.6 kB / 0.5206 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002503/0.3812, allocations: 134.6 kB / 0.5207 GB, free: 12.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003271/0.3816, allocations: 254.2 kB / 0.521 GB, free: 12.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006449/0.3822, allocations: 439.6 kB / 0.5214 GB, free: 11.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3822, allocations: 1.156 kB / 0.5214 GB, free: 11.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001029/0.3833, allocations: 0.5416 MB / 0.5219 GB, free: 11.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.191e-05/0.3833, allocations: 34.19 kB / 0.522 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.3834, allocations: 7.219 kB / 0.522 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000329/0.3837, allocations: 84.27 kB / 0.522 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002973/0.384, allocations: 73.78 kB / 0.5221 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002807/0.3868, allocations: 2.999 MB / 0.525 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003479/0.3872, allocations: 23.69 kB / 0.5251 GB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.592e-05/0.3872, allocations: 19.64 kB / 0.5251 GB, free: 8.59 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.0004171/0.3877, allocations: 251.1 kB / 0.5253 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.632e-05/0.3878, allocations: 44.95 kB / 0.5254 GB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001/0.3888, allocations: 0.489 MB / 0.5258 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.3888, allocations: 4.188 kB / 0.5258 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/0.3888, allocations: 6.078 kB / 0.5259 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.3888, allocations: 5.391 kB / 0.5259 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001879/0.3907, allocations: 1.06 MB / 0.5269 GB, free: 7.512 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3907, allocations: 0 / 0.5269 GB, free: 7.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001853/0.3909, allocations: 42.67 kB / 0.5269 GB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002847/0.3912, allocations: 83.3 kB / 0.527 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.881e-05/0.3912, allocations: 11.31 kB / 0.527 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002789/0.394, allocations: 3.017 MB / 0.53 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.3941, allocations: 2.172 kB / 0.53 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.3954, allocations: 0.7755 MB / 0.5307 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.3955, allocations: 121.2 kB / 0.5308 GB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.911e-05/0.3956, allocations: 14.81 kB / 0.5309 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002444/0.3959, allocations: 17.77 kB / 0.5309 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.396, allocations: 38.33 kB / 0.5309 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.007e-05/0.396, allocations: 10.94 kB / 0.5309 GB, free: 4.016 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003148/0.3963, allocations: 260.6 kB / 0.5312 GB, free: 3.887 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3964, allocations: 0 / 0.5312 GB, free: 3.887 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005503/0.3969, allocations: 113.5 kB / 0.5313 GB, free: 3.875 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.001778/0.3987, allocations: 1.334 MB / 0.5326 GB, free: 2.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.4, allocations: 0.6227 MB / 0.5332 GB, free: 2.516 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.4, allocations: 0 / 0.5332 GB, free: 2.516 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007673/0.4008, allocations: 0.492 MB / 0.5337 GB, free: 2.156 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007179/0.4015, allocations: 90.12 kB / 0.5338 GB, free: 2.117 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00655/0.4081, allocations: 4.135 MB / 0.5378 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006406/0.4088, allocations: 0.8645 MB / 0.5386 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003151/0.4091, allocations: 70.97 kB / 0.5387 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002658/0.4094, allocations: 158.5 kB / 0.5389 GB, free: 14.68 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4094, allocations: 0 / 0.5389 GB, free: 14.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05023/0.4596, allocations: 9.476 MB / 0.5481 GB, free: 9.578 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.27, allocations: 11.3 kB / 0.5481 GB, free: 9.57 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)