Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.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.00187/0.00187, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002265/0.002265, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.499/1.499, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.1878/0.1878, allocations: 38.5 MB / 348.7 MB, free: 2.59 MB / 270.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.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",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.001991/0.001991, allocations: 67.89 kB / 487.1 MB, free: 22.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1081, allocations: 62.41 MB / 0.5367 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.00905/0.1172, allocations: 7.391 MB / 0.5439 GB, free: 124 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002949/0.1201, allocations: 1.757 MB / 0.5456 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003596/0.1205, allocations: 39.62 kB / 0.5456 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006444/0.1211, allocations: 238.4 kB / 0.5459 GB, free: 14.09 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001156/0.1223, allocations: 0.5754 MB / 0.5464 GB, free: 13.51 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004221/0.1227, allocations: 211.7 kB / 0.5466 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001301/0.124, allocations: 1.273 MB / 0.5479 GB, free: 12.02 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004042/0.1244, allocations: 270.6 kB / 0.5481 GB, free: 11.75 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007414/0.1251, allocations: 0.568 MB / 0.5487 GB, free: 11.18 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008994/0.126, allocations: 0.6773 MB / 0.5493 GB, free: 10.5 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.1261, allocations: 64 kB / 0.5494 GB, free: 10.44 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.1263, allocations: 64 kB / 0.5495 GB, free: 10.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003295/0.1266, allocations: 346.9 kB / 0.5498 GB, free: 10.04 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004314/0.127, allocations: 437.7 kB / 0.5502 GB, free: 9.605 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009959/0.128, allocations: 0.9102 MB / 0.5511 GB, free: 8.691 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.128, allocations: 0 / 0.5511 GB, free: 8.691 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.128, allocations: 0 / 0.5511 GB, free: 8.691 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.1281, allocations: 0 / 0.5511 GB, free: 8.691 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: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.002047/0.1301, allocations: 1.259 MB / 0.5523 GB, free: 7.363 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.1301, allocations: 12.03 kB / 0.5523 GB, free: 7.352 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001355/0.1303, allocations: 114.6 kB / 0.5525 GB, free: 7.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.1304, allocations: 96.33 kB / 0.5525 GB, free: 7.137 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.1316, allocations: 0.7114 MB / 0.5532 GB, free: 6.387 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.112e-05/0.1317, allocations: 49.3 kB / 0.5533 GB, free: 6.34 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.1318, allocations: 68 kB / 0.5534 GB, free: 6.273 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.1331, allocations: 0.806 MB / 0.5541 GB, free: 5.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.1331, allocations: 3.938 kB / 0.5541 GB, free: 5.426 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.211e-05/0.1331, allocations: 28 kB / 0.5542 GB, free: 5.398 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-05/0.1332, allocations: 37.3 kB / 0.5542 GB, free: 5.359 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.1342, allocations: 0.6101 MB / 0.5548 GB, free: 4.746 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003665/0.1379, allocations: 2.63 MB / 0.5574 GB, free: 1.996 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009541/0.1388, allocations: 0.5649 MB / 0.5579 GB, free: 1.418 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006162/0.1394, allocations: 339.8 kB / 0.5582 GB, free: 1.082 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.1395, allocations: 4.438 kB / 0.5583 GB, free: 1.078 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006291/0.1401, allocations: 483 kB / 0.5587 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of pre-optimization done (n=63): time 1.894e-06/0.1401, allocations: 0 / 0.5587 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of matching and sorting (n=64): time 0.003062/0.1432, allocations: 2.003 MB / 0.5607 GB, free: 14.47 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.1433, allocations: 251.8 kB / 0.5609 GB, free: 14.17 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006664/0.144, allocations: 0.5703 MB / 0.5615 GB, free: 13.59 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.221e-05/0.144, allocations: 37.7 kB / 0.5615 GB, free: 13.55 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003144/0.1443, allocations: 408.4 kB / 0.5619 GB, free: 13.14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/0.1445, allocations: 210.3 kB / 0.5621 GB, free: 12.94 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002134/0.1447, allocations: 158.7 kB / 0.5622 GB, free: 12.78 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.1449, allocations: 378.8 kB / 0.5626 GB, free: 12.4 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003821/0.1453, allocations: 229.8 kB / 0.5628 GB, free: 12.18 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005506/0.1459, allocations: 457.9 kB / 0.5633 GB, free: 11.63 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009938/0.1468, allocations: 0.7973 MB / 0.564 GB, free: 10.71 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.1469, allocations: 4 kB / 0.564 GB, free: 10.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001611/0.1485, allocations: 0.9485 MB / 0.565 GB, free: 9.734 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.909e-05/0.1485, allocations: 63.39 kB / 0.565 GB, free: 9.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/0.1485, allocations: 15.88 kB / 0.565 GB, free: 9.645 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000399/0.1489, allocations: 117.8 kB / 0.5652 GB, free: 9.523 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004979/0.1494, allocations: 143.7 kB / 0.5653 GB, free: 9.383 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003424/0.1529, allocations: 3.563 MB / 0.5688 GB, free: 5.535 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004405/0.1533, allocations: 39.98 kB / 0.5688 GB, free: 5.496 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.047e-05/0.1534, allocations: 51.91 kB / 0.5689 GB, free: 5.445 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,tapRelay1.cnt_2,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_1,$whenCondition4,$whenCondition3,tapRelay2.cnt_2,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_1,$whenCondition2,$whenCondition1,tapRelay1.tap_2,$PRE.tapRelay1.tap_2,tapRelay1.tap_1,$PRE.tapRelay1.tap_1,tapRelay2.tap_2,$PRE.tapRelay2.tap_2,tapRelay2.tap_1,$PRE.tapRelay2.tap_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 2 * 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,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004359/0.1538, allocations: 362.6 kB / 0.5692 GB, free: 5.066 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.966e-05/0.1539, allocations: 75.53 kB / 0.5693 GB, free: 4.992 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001209/0.1551, allocations: 0.7896 MB / 0.5701 GB, free: 4.188 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.1551, allocations: 8 kB / 0.5701 GB, free: 4.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.1551, allocations: 0 / 0.5701 GB, free: 4.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.1551, allocations: 3.984 kB / 0.5701 GB, free: 4.176 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002281/0.1574, allocations: 1.573 MB / 0.5716 GB, free: 2.523 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1574, allocations: 0 / 0.5716 GB, free: 2.523 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005008/0.1579, allocations: 103.9 kB / 0.5717 GB, free: 2.422 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.069e-05/0.1579, allocations: 12.03 kB / 0.5717 GB, free: 2.41 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.137e-05/0.158, allocations: 23.98 kB / 0.5717 GB, free: 2.387 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.158, allocations: 0 / 0.5717 GB, free: 2.387 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.158, allocations: 4 kB / 0.5717 GB, free: 2.383 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001653/0.1597, allocations: 1.207 MB / 0.5729 GB, free: 1.133 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002427/0.1599, allocations: 188.5 kB / 0.5731 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.827e-05/0.16, allocations: 16 kB / 0.5731 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003219/0.1603, allocations: 23.98 kB / 0.5731 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.927e-05/0.1604, allocations: 44.36 kB / 0.5732 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.53e-05/0.1605, allocations: 59.88 kB / 0.5732 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004578/0.1609, allocations: 399.1 kB / 0.5736 GB, free: 412 kB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1609, allocations: 0 / 0.5736 GB, free: 412 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.000692/0.1616, allocations: 176 kB / 0.5738 GB, free: 236 kB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (trafo1.i1,trafo2.i1) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tapRelay2.tap_1,tapRelay2.tap_2,tapRelay2.cnt_1,tapRelay2.cnt_2,tapRelay1.tap_1,tapRelay1.tap_2,tapRelay1.cnt_1,tapRelay1.cnt_2,system.initime) * Number of discrete states: 12 (tapRelay1.tap_2,tapRelay1.cnt_2,$whenCondition4,tapRelay1.tap_1,tapRelay1.cnt_1,$whenCondition3,tapRelay2.tap_2,tapRelay2.cnt_2,$whenCondition2,tapRelay2.tap_1,tapRelay2.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001997/0.1636, allocations: 1.77 MB / 0.5755 GB, free: 14.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.1651, allocations: 0.968 MB / 0.5765 GB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1651, allocations: 0 / 0.5765 GB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005433/0.1657, allocations: 433.2 kB / 0.5769 GB, free: 12.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007963/0.1665, allocations: 156.4 kB / 0.577 GB, free: 12.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008621/0.1751, allocations: 6.306 MB / 0.5832 GB, free: 6.164 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007185/0.1758, allocations: 1.009 MB / 0.5842 GB, free: 5.125 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004213/0.1762, allocations: 153.8 kB / 0.5843 GB, free: 4.973 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003622/0.1766, allocations: 279.3 kB / 0.5846 GB, free: 4.699 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1766, allocations: 0 / 0.5846 GB, free: 4.699 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2727/0.4493, allocations: 14.19 MB / 0.5984 GB, free: 49.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.6, allocations: 5 kB / 0.5984 GB, free: 49.88 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.6560823010077] Failed to read output from testmodel.py, exit status != 0: 12.698590582003817 12.721561722 12.589411966 Calling exit ...