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.001384/0.001384, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001481/0.001481, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.541/1.541, allocations: 230.6 MB / 258.3 MB, free: 7.789 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.2026/0.2026, allocations: 38.55 MB / 353.2 MB, free: 12.32 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="cs",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.002132/0.002132, allocations: 67.84 kB / 493.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3705/0.3726, allocations: 62.46 MB / 0.5427 GB, free: 264 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.008384/0.381, allocations: 5.123 MB / 0.5477 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002426/0.3834, allocations: 1.11 MB / 0.5488 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002947/0.3837, allocations: 22.38 kB / 0.5488 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004085/0.3841, allocations: 96.38 kB / 0.5489 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008127/0.385, allocations: 326.3 kB / 0.5492 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003985/0.3854, allocations: 142.8 kB / 0.5494 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009346/0.3863, allocations: 0.7255 MB / 0.5501 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002854/0.3866, allocations: 128.7 kB / 0.5502 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005828/0.3872, allocations: 342.5 kB / 0.5505 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006334/0.3878, allocations: 384.9 kB / 0.5509 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.102e-05/0.3879, allocations: 40.88 kB / 0.5509 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.388, allocations: 41.34 kB / 0.551 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000284/0.3883, allocations: 209.5 kB / 0.5512 GB, free: 9.961 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002944/0.3886, allocations: 211.9 kB / 0.5514 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007668/0.3893, allocations: 0.5555 MB / 0.5519 GB, free: 9.461 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3893, allocations: 5.062 kB / 0.5519 GB, free: 9.457 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.3893, allocations: 0 / 0.5519 GB, free: 9.457 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.3893, allocations: 0 / 0.5519 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.001738/0.3911, allocations: 0.7735 MB / 0.5527 GB, free: 8.832 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.3911, allocations: 14.16 kB / 0.5527 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.85e-05/0.3912, allocations: 10.5 kB / 0.5527 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.028e-05/0.3913, allocations: 72.03 kB / 0.5528 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.3914, allocations: 58.69 kB / 0.5528 GB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007806/0.3922, allocations: 390.3 kB / 0.5532 GB, free: 8.418 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.605e-05/0.3922, allocations: 32.64 kB / 0.5532 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.3923, allocations: 40.3 kB / 0.5533 GB, free: 8.387 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009191/0.3933, allocations: 0.5049 MB / 0.5537 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.3933, allocations: 1.25 kB / 0.5538 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.846e-05/0.3933, allocations: 15.88 kB / 0.5538 GB, free: 8.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000116/0.3934, allocations: 29.03 kB / 0.5538 GB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006884/0.3941, allocations: 401.2 kB / 0.5542 GB, free: 7.805 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002579/0.3967, allocations: 1.581 MB / 0.5557 GB, free: 6.512 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00069/0.3974, allocations: 337.4 kB / 0.556 GB, free: 6.305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000506/0.3979, allocations: 223.8 kB / 0.5563 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.3979, allocations: 4.438 kB / 0.5563 GB, free: 6.168 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005174/0.3984, allocations: 309.4 kB / 0.5566 GB, free: 5.832 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.615e-06/0.3985, allocations: 0 / 0.5566 GB, free: 5.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.00262/0.4011, allocations: 1.262 MB / 0.5578 GB, free: 4.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.4012, allocations: 140.5 kB / 0.5579 GB, free: 4.332 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000439/0.4016, allocations: 373.6 kB / 0.5583 GB, free: 3.961 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.232e-05/0.4017, allocations: 33.7 kB / 0.5583 GB, free: 3.922 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002204/0.4019, allocations: 264.5 kB / 0.5586 GB, free: 3.656 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.402, allocations: 126.9 kB / 0.5587 GB, free: 3.531 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001685/0.4022, allocations: 82.14 kB / 0.5588 GB, free: 3.445 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.4024, allocations: 354.8 kB / 0.5591 GB, free: 3.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002581/0.4026, allocations: 154.6 kB / 0.5592 GB, free: 2.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003783/0.403, allocations: 289.2 kB / 0.5595 GB, free: 2.594 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006561/0.4037, allocations: 441.5 kB / 0.5599 GB, free: 2.098 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.4037, allocations: 4 kB / 0.5599 GB, free: 2.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009756/0.4046, allocations: 0.5681 MB / 0.5605 GB, free: 1.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.769e-05/0.4047, allocations: 37.69 kB / 0.5605 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/0.4047, allocations: 4 kB / 0.5605 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003213/0.405, allocations: 81.61 kB / 0.5606 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002758/0.4053, allocations: 67.91 kB / 0.5607 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00279/0.4081, allocations: 2.781 MB / 0.5634 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000317/0.4084, allocations: 23.97 kB / 0.5634 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-05/0.4084, allocations: 16 kB / 0.5634 GB, free: 14.25 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.0003502/0.4088, allocations: 251.5 kB / 0.5637 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.343e-05/0.4089, allocations: 43.72 kB / 0.5637 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009536/0.4098, allocations: 0.5294 MB / 0.5642 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.4098, allocations: 4 kB / 0.5642 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.4098, allocations: 7.938 kB / 0.5642 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.4098, allocations: 0 / 0.5642 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001655/0.4115, allocations: 1.023 MB / 0.5652 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.4115, allocations: 0 / 0.5652 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001756/0.4117, allocations: 39.95 kB / 0.5653 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002539/0.4119, allocations: 93.58 kB / 0.5654 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.506e-05/0.412, allocations: 16 kB / 0.5654 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002738/0.4147, allocations: 2.789 MB / 0.5681 GB, free: 9.113 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.4147, allocations: 7.969 kB / 0.5681 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001331/0.416, allocations: 0.8431 MB / 0.5689 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.711e-05/0.4161, allocations: 39.72 kB / 0.569 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.935e-05/0.4162, allocations: 19.92 kB / 0.569 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002474/0.4165, allocations: 24.2 kB / 0.569 GB, free: 8.137 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.957e-05/0.4166, allocations: 31.94 kB / 0.5691 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-05/0.4166, allocations: 15.94 kB / 0.5691 GB, free: 8.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003123/0.4169, allocations: 259.2 kB / 0.5693 GB, free: 7.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4169, allocations: 0 / 0.5693 GB, free: 7.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005587/0.4175, allocations: 116 kB / 0.5694 GB, free: 7.727 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.001679/0.4191, allocations: 1.397 MB / 0.5708 GB, free: 6.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.4202, allocations: 0.672 MB / 0.5714 GB, free: 5.547 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.4202, allocations: 0 / 0.5714 GB, free: 5.547 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007309/0.421, allocations: 0.5031 MB / 0.5719 GB, free: 5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006513/0.4216, allocations: 90.16 kB / 0.572 GB, free: 4.918 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006097/0.4277, allocations: 4.273 MB / 0.5762 GB, free: 400 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.428, allocations: 262.3 kB / 0.5764 GB, free: 112 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002556/0.4283, allocations: 67.34 kB / 0.5765 GB, free: 40 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002728/0.4286, allocations: 159.5 kB / 0.5767 GB, free: 15.88 MB / 430.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4286, allocations: 4 kB / 0.5767 GB, free: 15.88 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05726/0.4858, allocations: 10.18 MB / 0.5866 GB, free: 5.922 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.83, allocations: 7.938 kB / 0.5866 GB, free: 5.914 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.832245198078454] Failed to read output from testmodel.py, exit status != 0: 13.00321850401815 13.019140824 12.626663795 Calling exit ...