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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 211.6 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.467/1.467, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1881/0.1881, allocations: 38.55 MB / 352.5 MB, free: 12.33 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003217/0.003217, allocations: 63.91 kB / 492.5 MB, free: 4.715 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3669, allocations: 62.46 MB / 0.5419 GB, free: 276 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.007335/0.3742, allocations: 5.138 MB / 0.547 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002873/0.3771, allocations: 1.116 MB / 0.548 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003572/0.3775, allocations: 17.84 kB / 0.5481 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004696/0.3779, allocations: 92.47 kB / 0.5481 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009352/0.3789, allocations: 327.1 kB / 0.5485 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004369/0.3793, allocations: 146.3 kB / 0.5486 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009212/0.3802, allocations: 0.7261 MB / 0.5493 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002498/0.3805, allocations: 128.6 kB / 0.5494 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005433/0.381, allocations: 334.8 kB / 0.5498 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006342/0.3816, allocations: 392.9 kB / 0.5501 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.715e-05/0.3817, allocations: 39.75 kB / 0.5502 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.999e-05/0.3818, allocations: 41.88 kB / 0.5502 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002817/0.3821, allocations: 208.3 kB / 0.5504 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002863/0.3824, allocations: 213.7 kB / 0.5506 GB, free: 9.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007872/0.3832, allocations: 0.5587 MB / 0.5512 GB, free: 9.461 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.3832, allocations: 1.25 kB / 0.5512 GB, free: 9.461 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3832, allocations: 0 / 0.5512 GB, free: 9.461 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.793e-05/0.3832, allocations: 4 kB / 0.5512 GB, free: 9.457 MB / 398.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.001804/0.385, allocations: 0.7654 MB / 0.5519 GB, free: 8.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.3851, allocations: 9.25 kB / 0.5519 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.658e-05/0.3851, allocations: 76.66 kB / 0.552 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.3853, allocations: 62.28 kB / 0.552 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007589/0.386, allocations: 388 kB / 0.5524 GB, free: 8.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.16e-05/0.3861, allocations: 36.39 kB / 0.5525 GB, free: 8.406 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.503e-05/0.3861, allocations: 31.91 kB / 0.5525 GB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008114/0.387, allocations: 0.505 MB / 0.553 GB, free: 8.047 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.387, allocations: 1.25 kB / 0.553 GB, free: 8.047 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.211e-05/0.387, allocations: 19.55 kB / 0.553 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001153/0.3871, allocations: 29.53 kB / 0.553 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006587/0.3878, allocations: 395.2 kB / 0.5534 GB, free: 7.816 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002398/0.3902, allocations: 1.589 MB / 0.555 GB, free: 6.516 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006568/0.3908, allocations: 329 kB / 0.5553 GB, free: 6.316 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000436/0.3913, allocations: 229.8 kB / 0.5555 GB, free: 6.168 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.3913, allocations: 4 kB / 0.5555 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004832/0.3918, allocations: 313.3 kB / 0.5558 GB, free: 5.824 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.074e-06/0.3918, allocations: 0 / 0.5558 GB, free: 5.824 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.002518/0.3943, allocations: 1.258 MB / 0.557 GB, free: 4.496 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.846e-05/0.3944, allocations: 148.5 kB / 0.5572 GB, free: 4.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004488/0.3949, allocations: 377.5 kB / 0.5575 GB, free: 3.945 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.179e-05/0.3949, allocations: 37.7 kB / 0.5576 GB, free: 3.902 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002259/0.3951, allocations: 260.5 kB / 0.5578 GB, free: 3.641 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.3952, allocations: 119 kB / 0.5579 GB, free: 3.523 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.3954, allocations: 82.19 kB / 0.558 GB, free: 3.438 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.3956, allocations: 350.8 kB / 0.5583 GB, free: 3.086 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002599/0.3958, allocations: 158.6 kB / 0.5585 GB, free: 2.922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003523/0.3962, allocations: 281.2 kB / 0.5587 GB, free: 2.594 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006045/0.3968, allocations: 445.5 kB / 0.5592 GB, free: 2.094 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.3968, allocations: 4 kB / 0.5592 GB, free: 2.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009426/0.3977, allocations: 0.5643 MB / 0.5597 GB, free: 1.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.595e-05/0.3978, allocations: 37.69 kB / 0.5598 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.3978, allocations: 8 kB / 0.5598 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002841/0.3981, allocations: 77.67 kB / 0.5598 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.3983, allocations: 67.91 kB / 0.5599 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002591/0.4009, allocations: 2.789 MB / 0.5626 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003273/0.4013, allocations: 23.98 kB / 0.5627 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.656e-05/0.4013, allocations: 19.98 kB / 0.5627 GB, free: 14.24 MB / 414.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.0003392/0.4016, allocations: 239.4 kB / 0.5629 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.241e-05/0.4017, allocations: 47.72 kB / 0.5629 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009319/0.4026, allocations: 0.5333 MB / 0.5635 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.4026, allocations: 4 kB / 0.5635 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4027, allocations: 7.938 kB / 0.5635 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.4027, allocations: 0 / 0.5635 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001677/0.4043, allocations: 1.019 MB / 0.5645 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.4043, allocations: 0 / 0.5645 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001729/0.4045, allocations: 39.92 kB / 0.5645 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002623/0.4048, allocations: 93.67 kB / 0.5646 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.332e-05/0.4048, allocations: 15.92 kB / 0.5646 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002431/0.4072, allocations: 2.797 MB / 0.5673 GB, free: 9.102 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4072, allocations: 0 / 0.5673 GB, free: 9.102 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.4085, allocations: 0.847 MB / 0.5682 GB, free: 8.211 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.168e-05/0.4086, allocations: 39.8 kB / 0.5682 GB, free: 8.172 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.964e-05/0.4087, allocations: 15.92 kB / 0.5682 GB, free: 8.156 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003082/0.409, allocations: 15.98 kB / 0.5682 GB, free: 8.141 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.4091, allocations: 39.88 kB / 0.5683 GB, free: 8.102 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.232e-05/0.4091, allocations: 12.19 kB / 0.5683 GB, free: 8.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002925/0.4094, allocations: 263.2 kB / 0.5685 GB, free: 7.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4094, allocations: 0 / 0.5685 GB, free: 7.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005301/0.4099, allocations: 112 kB / 0.5687 GB, free: 7.73 MB / 414.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.001777/0.4117, allocations: 1.411 MB / 0.57 GB, free: 6.258 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.4128, allocations: 0.6724 MB / 0.5707 GB, free: 5.535 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.4128, allocations: 4 kB / 0.5707 GB, free: 5.531 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007304/0.4136, allocations: 0.4905 MB / 0.5712 GB, free: 4.996 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006193/0.4142, allocations: 94.83 kB / 0.5713 GB, free: 4.906 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006021/0.4202, allocations: 4.261 MB / 0.5754 GB, free: 400 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.4205, allocations: 266.3 kB / 0.5757 GB, free: 108 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000238/0.4207, allocations: 75.34 kB / 0.5757 GB, free: 28 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002457/0.421, allocations: 159.5 kB / 0.5759 GB, free: 15.87 MB / 430.1 MB Notification: Performance of SimCode: time 7.12e-07/0.421, allocations: 0 / 0.5759 GB, free: 15.87 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04741/0.4684, allocations: 10.59 MB / 0.5862 GB, free: 5.492 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.5, allocations: 6.953 kB / 0.5862 GB, free: 5.488 MB / 430.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.37726551387459] Failed to read output from testmodel.py, exit status != 0: 12.61863053101115 12.646803166 12.258250039 Calling exit ...