Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.001745/0.001745, allocations: 120.1 kB / 18.49 MB, free: 4.586 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.002134/0.002134, allocations: 215 kB / 21.45 MB, free: 1.641 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.526/1.526, allocations: 230.6 MB / 254.8 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1894/0.1894, allocations: 38.52 MB / 349.4 MB, free: 2.617 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_latest_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.002034/0.002034, allocations: 65.19 kB / 487.8 MB, free: 32.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1072, allocations: 62.42 MB / 0.5374 GB, free: 9.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker): time 0.007122/0.1143, allocations: 5.374 MB / 0.5426 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002118/0.1165, allocations: 1.188 MB / 0.5438 GB, free: 2.949 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002081/0.1167, allocations: 23.81 kB / 0.5438 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003672/0.117, allocations: 91.23 kB / 0.5439 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006817/0.1177, allocations: 318.4 kB / 0.5442 GB, free: 2.523 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003242/0.118, allocations: 155.7 kB / 0.5443 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008563/0.1189, allocations: 0.7164 MB / 0.545 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002811/0.1192, allocations: 152.8 kB / 0.5452 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004949/0.1197, allocations: 334.7 kB / 0.5455 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005918/0.1203, allocations: 378.6 kB / 0.5459 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.256e-05/0.1203, allocations: 43.98 kB / 0.5459 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.357e-05/0.1204, allocations: 40 kB / 0.5459 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002384/0.1207, allocations: 215.3 kB / 0.5461 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002645/0.1209, allocations: 246.8 kB / 0.5464 GB, free: 272 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007144/0.1216, allocations: 0.5563 MB / 0.5469 GB, free: 15.71 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1216, allocations: 7.938 kB / 0.5469 GB, free: 15.7 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1217, allocations: 0 / 0.5469 GB, free: 15.7 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.707e-06/0.1217, allocations: 4 kB / 0.5469 GB, free: 15.7 MB / 414.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.001603/0.1233, allocations: 0.8382 MB / 0.5478 GB, free: 14.8 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.1233, allocations: 12.03 kB / 0.5478 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.965e-05/0.1233, allocations: 13.19 kB / 0.5478 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.463e-05/0.1234, allocations: 74.72 kB / 0.5479 GB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.1235, allocations: 64.55 kB / 0.5479 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007356/0.1242, allocations: 456.5 kB / 0.5483 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.587e-05/0.1243, allocations: 32.98 kB / 0.5484 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.42e-05/0.1244, allocations: 36 kB / 0.5484 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008204/0.1252, allocations: 486.5 kB / 0.5489 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.1252, allocations: 3.984 kB / 0.5489 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.388e-05/0.1252, allocations: 12 kB / 0.5489 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001171/0.1254, allocations: 28.62 kB / 0.5489 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006666/0.126, allocations: 362.6 kB / 0.5493 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002869/0.1289, allocations: 1.723 MB / 0.551 GB, free: 11.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007533/0.1296, allocations: 382.3 kB / 0.5513 GB, free: 10.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004604/0.1301, allocations: 189.7 kB / 0.5515 GB, free: 10.76 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.582e-05/0.1301, allocations: 4 kB / 0.5515 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005497/0.1307, allocations: 283.7 kB / 0.5518 GB, free: 10.45 MB / 414.1 MB Notification: Performance of pre-optimization done (n=35): time 2.114e-06/0.1307, allocations: 0 / 0.5518 GB, free: 10.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=36): time 0.002811/0.1335, allocations: 1.402 MB / 0.5531 GB, free: 8.934 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.1336, allocations: 140.6 kB / 0.5533 GB, free: 8.766 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004868/0.1341, allocations: 381.6 kB / 0.5536 GB, free: 8.387 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.837e-05/0.1342, allocations: 29.7 kB / 0.5537 GB, free: 8.352 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000248/0.1344, allocations: 256.6 kB / 0.5539 GB, free: 8.094 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.1345, allocations: 115.1 kB / 0.554 GB, free: 7.98 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001504/0.1347, allocations: 86.2 kB / 0.5541 GB, free: 7.891 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002041/0.1349, allocations: 354.8 kB / 0.5544 GB, free: 7.535 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002549/0.1351, allocations: 129.1 kB / 0.5546 GB, free: 7.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003678/0.1355, allocations: 264.1 kB / 0.5548 GB, free: 7.098 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006682/0.1362, allocations: 449.2 kB / 0.5552 GB, free: 6.594 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1362, allocations: 0 / 0.5552 GB, free: 6.594 MB / 414.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.000959/0.1371, allocations: 0.5389 MB / 0.5558 GB, free: 6.035 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.348e-05/0.1372, allocations: 33.7 kB / 0.5558 GB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.1372, allocations: 4.469 kB / 0.5558 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003156/0.1375, allocations: 81.67 kB / 0.5559 GB, free: 5.906 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002874/0.1378, allocations: 71.84 kB / 0.556 GB, free: 5.836 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002904/0.1407, allocations: 3.007 MB / 0.5589 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003199/0.141, allocations: 27.97 kB / 0.5589 GB, free: 2.527 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.923e-05/0.1411, allocations: 20 kB / 0.5589 GB, free: 2.508 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.0003582/0.1414, allocations: 243.3 kB / 0.5592 GB, free: 2.254 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.446e-05/0.1415, allocations: 43.72 kB / 0.5592 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009451/0.1424, allocations: 0.4966 MB / 0.5597 GB, free: 1.691 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.1424, allocations: 4 kB / 0.5597 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.1424, allocations: 3.938 kB / 0.5597 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.1424, allocations: 3.984 kB / 0.5597 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00173/0.1442, allocations: 1.057 MB / 0.5607 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1442, allocations: 0 / 0.5607 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001734/0.1444, allocations: 35.92 kB / 0.5608 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002875/0.1446, allocations: 89.59 kB / 0.5609 GB, free: 432 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.23e-05/0.1447, allocations: 20.02 kB / 0.5609 GB, free: 412 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002718/0.1474, allocations: 3.007 MB / 0.5638 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1474, allocations: 4.031 kB / 0.5638 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/0.1487, allocations: 0.7733 MB / 0.5646 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/0.1488, allocations: 116.8 kB / 0.5647 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.665e-05/0.1489, allocations: 19.94 kB / 0.5647 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002469/0.1491, allocations: 15.98 kB / 0.5647 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.1492, allocations: 31.95 kB / 0.5647 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.243e-05/0.1493, allocations: 15.98 kB / 0.5648 GB, free: 12.09 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003103/0.1496, allocations: 259.2 kB / 0.565 GB, free: 11.84 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1496, allocations: 0 / 0.565 GB, free: 11.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005495/0.1501, allocations: 112.1 kB / 0.5651 GB, free: 11.73 MB / 430.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.001684/0.1518, allocations: 1.327 MB / 0.5664 GB, free: 10.36 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.1529, allocations: 0.6212 MB / 0.567 GB, free: 9.695 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1529, allocations: 1 kB / 0.567 GB, free: 9.695 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007126/0.1536, allocations: 481.2 kB / 0.5675 GB, free: 9.188 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005854/0.1542, allocations: 84.44 kB / 0.5676 GB, free: 9.109 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006183/0.1603, allocations: 4.132 MB / 0.5716 GB, free: 4.766 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005686/0.1609, allocations: 0.8704 MB / 0.5724 GB, free: 3.867 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002349/0.1611, allocations: 75.34 kB / 0.5725 GB, free: 3.793 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.1614, allocations: 155.4 kB / 0.5727 GB, free: 3.641 MB / 430.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1614, allocations: 3.938 kB / 0.5727 GB, free: 3.637 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05496/0.2163, allocations: 9.599 MB / 0.582 GB, free: 10.22 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.12, allocations: 2.109 kB / 0.582 GB, free: 10.22 MB / 446.1 MB " [Timeout remaining time 649] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.20555031800177] Failed to read output from testmodel.py, exit status != 0: 11.274223056039773 11.300148639 11.173700053 Calling exit ...