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.001459/0.001459, allocations: 108.1 kB / 17.06 MB, free: 5.82 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.001614/0.001614, allocations: 195.9 kB / 18 MB, free: 4.965 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.343/1.343, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1749/0.1749, allocations: 38.03 MB / 329.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 67.91 kB / 457.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2907, allocations: 58.06 MB / 0.5036 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.005623/0.2964, allocations: 5.292 MB / 0.5088 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001656/0.2981, allocations: 1.161 MB / 0.5099 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002073/0.2983, allocations: 22.31 kB / 0.5099 GB, free: 2.965 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003091/0.2986, allocations: 87.91 kB / 0.51 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006228/0.2993, allocations: 322.6 kB / 0.5103 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003128/0.2996, allocations: 150.6 kB / 0.5105 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007257/0.3003, allocations: 0.7282 MB / 0.5112 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002827/0.3006, allocations: 188.4 kB / 0.5114 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004378/0.3011, allocations: 317.8 kB / 0.5117 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005253/0.3016, allocations: 370.3 kB / 0.512 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.443e-05/0.3017, allocations: 41.78 kB / 0.5121 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.684e-05/0.3018, allocations: 40.88 kB / 0.5121 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.302, allocations: 193.9 kB / 0.5123 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002497/0.3023, allocations: 264.7 kB / 0.5125 GB, free: 1.754 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006501/0.3029, allocations: 0.5489 MB / 0.5131 GB, free: 1.531 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.303, allocations: 0.75 kB / 0.5131 GB, free: 1.531 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.303, allocations: 5.219 kB / 0.5131 GB, free: 1.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.303, allocations: 0 / 0.5131 GB, free: 1.527 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.001378/0.3044, allocations: 0.8456 MB / 0.5139 GB, free: 0.875 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.3044, allocations: 13.17 kB / 0.5139 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.913e-05/0.3045, allocations: 77.06 kB / 0.514 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.386e-05/0.3046, allocations: 54.58 kB / 0.514 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000645/0.3052, allocations: 458.9 kB / 0.5145 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.3053, allocations: 32.69 kB / 0.5145 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.976e-05/0.3054, allocations: 36.47 kB / 0.5145 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000739/0.3061, allocations: 485.1 kB / 0.515 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.3061, allocations: 3.938 kB / 0.515 GB, free: 196 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.312e-05/0.3062, allocations: 24.34 kB / 0.515 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001104/0.3063, allocations: 29.17 kB / 0.5151 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005987/0.3069, allocations: 362.9 kB / 0.5154 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002406/0.3093, allocations: 1.715 MB / 0.5171 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000687/0.31, allocations: 403.4 kB / 0.5175 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004813/0.3105, allocations: 205.3 kB / 0.5177 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.3106, allocations: 2.781 kB / 0.5177 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004371/0.311, allocations: 289 kB / 0.5179 GB, free: 14.38 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.994e-06/0.311, allocations: 0 / 0.5179 GB, free: 14.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.002369/0.3134, allocations: 1.406 MB / 0.5193 GB, free: 13.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.086e-05/0.3135, allocations: 140.9 kB / 0.5195 GB, free: 13.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000391/0.3139, allocations: 370.6 kB / 0.5198 GB, free: 13.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.745e-05/0.3139, allocations: 37.03 kB / 0.5198 GB, free: 13.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.3141, allocations: 259.7 kB / 0.5201 GB, free: 12.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.605e-05/0.3142, allocations: 121 kB / 0.5202 GB, free: 12.74 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.3144, allocations: 78.52 kB / 0.5203 GB, free: 12.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3145, allocations: 355.1 kB / 0.5206 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002328/0.3147, allocations: 129.1 kB / 0.5207 GB, free: 12.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002958/0.315, allocations: 255 kB / 0.521 GB, free: 12.13 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005387/0.3156, allocations: 444.1 kB / 0.5214 GB, free: 11.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3156, allocations: 2.188 kB / 0.5214 GB, free: 11.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008871/0.3165, allocations: 0.5387 MB / 0.5219 GB, free: 11.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.807e-05/0.3165, allocations: 33.92 kB / 0.522 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.3165, allocations: 3.578 kB / 0.522 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002675/0.3168, allocations: 89.06 kB / 0.5221 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002635/0.3171, allocations: 69.23 kB / 0.5221 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/0.3192, allocations: 3.005 MB / 0.5251 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003266/0.3196, allocations: 24.14 kB / 0.5251 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.205e-05/0.3196, allocations: 18.91 kB / 0.5251 GB, free: 8.555 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.0003107/0.3199, allocations: 249.3 kB / 0.5253 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.965e-05/0.32, allocations: 47.64 kB / 0.5254 GB, free: 8.324 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008724/0.3209, allocations: 496.8 kB / 0.5259 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.3209, allocations: 4.125 kB / 0.5259 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.3209, allocations: 9.922 kB / 0.5259 GB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.902e-06/0.3209, allocations: 7.188 kB / 0.5259 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001622/0.3225, allocations: 1.059 MB / 0.5269 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.3226, allocations: 1.5 kB / 0.5269 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001804/0.3227, allocations: 37.58 kB / 0.5269 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002619/0.323, allocations: 87.52 kB / 0.527 GB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.3231, allocations: 10.7 kB / 0.527 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002227/0.3253, allocations: 3.009 MB / 0.53 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3253, allocations: 0.7031 kB / 0.53 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001164/0.3265, allocations: 0.7769 MB / 0.5307 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.3266, allocations: 115 kB / 0.5308 GB, free: 4.012 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.108e-05/0.3267, allocations: 16.25 kB / 0.5309 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002532/0.327, allocations: 25.61 kB / 0.5309 GB, free: 3.992 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.3271, allocations: 34.95 kB / 0.5309 GB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.174e-05/0.3271, allocations: 13.81 kB / 0.5309 GB, free: 3.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003103/0.3274, allocations: 257.7 kB / 0.5312 GB, free: 3.855 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3274, allocations: 0 / 0.5312 GB, free: 3.855 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005886/0.328, allocations: 112.3 kB / 0.5313 GB, free: 3.844 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.001483/0.3295, allocations: 1.338 MB / 0.5326 GB, free: 2.875 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009951/0.3305, allocations: 0.626 MB / 0.5332 GB, free: 2.477 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3306, allocations: 0 / 0.5332 GB, free: 2.477 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000675/0.3312, allocations: 0.4884 MB / 0.5337 GB, free: 2.121 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006209/0.3319, allocations: 95.05 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.00589/0.3378, allocations: 4.129 MB / 0.5378 GB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00055/0.3384, allocations: 0.8679 MB / 0.5387 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003127/0.3387, allocations: 71.56 kB / 0.5387 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/0.3389, allocations: 158 kB / 0.5389 GB, free: 14.64 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3389, allocations: 0 / 0.5389 GB, free: 14.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03314/0.3721, allocations: 9.475 MB / 0.5481 GB, free: 9.598 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.59, allocations: 3.938 kB / 0.5481 GB, free: 9.594 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)