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.001744/0.001744, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002084/0.002084, allocations: 207.6 kB / 23.73 MB, free: 4.379 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.51/1.51, 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.56 MB / 352.5 MB, free: 12.31 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.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.002055/0.002055, allocations: 70.02 kB / 492.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3222, allocations: 62.47 MB / 0.5419 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.009105/0.3313, allocations: 6.932 MB / 0.5487 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003273/0.3346, allocations: 1.657 MB / 0.5503 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004032/0.335, allocations: 40.38 kB / 0.5504 GB, free: 9.648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006938/0.3357, allocations: 220.8 kB / 0.5506 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001391/0.3371, allocations: 0.5868 MB / 0.5512 GB, free: 9.004 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004844/0.3376, allocations: 216.6 kB / 0.5514 GB, free: 8.828 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001428/0.339, allocations: 1.255 MB / 0.5526 GB, free: 8.129 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003776/0.3394, allocations: 221.5 kB / 0.5528 GB, free: 8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009449/0.3403, allocations: 0.5816 MB / 0.5534 GB, free: 7.656 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001034/0.3413, allocations: 0.6734 MB / 0.554 GB, free: 7.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001235/0.3415, allocations: 62.38 kB / 0.5541 GB, free: 7.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001873/0.3416, allocations: 63.91 kB / 0.5541 GB, free: 7.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003844/0.342, allocations: 342.3 kB / 0.5545 GB, free: 7.051 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004764/0.3425, allocations: 361.2 kB / 0.5548 GB, free: 6.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001189/0.3437, allocations: 0.9346 MB / 0.5557 GB, free: 6.145 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3437, allocations: 0 / 0.5557 GB, free: 6.145 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3437, allocations: 0 / 0.5557 GB, free: 6.145 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.3437, allocations: 3.938 kB / 0.5557 GB, free: 6.141 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: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.002216/0.3459, allocations: 1.176 MB / 0.5569 GB, free: 4.914 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.346, allocations: 19.92 kB / 0.5569 GB, free: 4.895 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000137/0.3461, allocations: 110.7 kB / 0.557 GB, free: 4.777 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.3463, allocations: 100.3 kB / 0.5571 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001381/0.3477, allocations: 0.6431 MB / 0.5577 GB, free: 4.008 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.842e-05/0.3477, allocations: 45.3 kB / 0.5578 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.3478, allocations: 64 kB / 0.5578 GB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.3492, allocations: 0.8679 MB / 0.5587 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.3492, allocations: 0 / 0.5587 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-05/0.3493, allocations: 24 kB / 0.5587 GB, free: 2.957 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.896e-05/0.3493, allocations: 37.3 kB / 0.5587 GB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001091/0.3504, allocations: 0.672 MB / 0.5594 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003909/0.3543, allocations: 2.353 MB / 0.5617 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.3554, allocations: 0.6276 MB / 0.5623 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000651/0.3561, allocations: 386.4 kB / 0.5627 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.385e-05/0.3561, allocations: 8.438 kB / 0.5627 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007467/0.3569, allocations: 0.5421 MB / 0.5632 GB, free: 14.14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=63): time 3.136e-06/0.3569, allocations: 0 / 0.5632 GB, free: 14.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=64): time 0.003511/0.3604, allocations: 2.051 MB / 0.5652 GB, free: 12 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00018/0.3605, allocations: 263.7 kB / 0.5655 GB, free: 11.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000706/0.3613, allocations: 0.5703 MB / 0.566 GB, free: 11.1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.391e-05/0.3613, allocations: 37.7 kB / 0.5661 GB, free: 11.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003546/0.3616, allocations: 412.3 kB / 0.5665 GB, free: 10.65 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.3618, allocations: 222.3 kB / 0.5667 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002147/0.3621, allocations: 146.6 kB / 0.5668 GB, free: 10.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.3623, allocations: 386.8 kB / 0.5672 GB, free: 9.895 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000426/0.3627, allocations: 277.3 kB / 0.5674 GB, free: 9.609 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006326/0.3633, allocations: 0.5011 MB / 0.5679 GB, free: 8.996 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.3644, allocations: 0.7924 MB / 0.5687 GB, free: 8.086 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3644, allocations: 0 / 0.5687 GB, free: 8.086 MB / 414.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001672/0.3661, allocations: 1.005 MB / 0.5697 GB, free: 7.039 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.1e-05/0.3661, allocations: 67.39 kB / 0.5697 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/0.3661, allocations: 15.88 kB / 0.5698 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003846/0.3665, allocations: 109.8 kB / 0.5699 GB, free: 6.832 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005241/0.367, allocations: 148 kB / 0.57 GB, free: 6.688 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003604/0.3706, allocations: 3.332 MB / 0.5733 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005731/0.3712, allocations: 44.05 kB / 0.5733 GB, free: 3.082 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.029e-05/0.3713, allocations: 59.89 kB / 0.5734 GB, free: 3.023 MB / 414.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.0005562/0.3719, allocations: 342.7 kB / 0.5737 GB, free: 2.664 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.372, allocations: 79.52 kB / 0.5738 GB, free: 2.586 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001307/0.3733, allocations: 0.8572 MB / 0.5746 GB, free: 1.695 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.3733, allocations: 12 kB / 0.5746 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3733, allocations: 0 / 0.5746 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.3733, allocations: 3.984 kB / 0.5746 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002493/0.3758, allocations: 1.547 MB / 0.5761 GB, free: 56 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.3758, allocations: 4 kB / 0.5761 GB, free: 52 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00052/0.3763, allocations: 107.8 kB / 0.5762 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.395e-05/0.3764, allocations: 16.02 kB / 0.5762 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.188e-05/0.3764, allocations: 16 kB / 0.5763 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.586e-06/0.3764, allocations: 4 kB / 0.5763 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3764, allocations: 0 / 0.5763 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001849/0.3783, allocations: 1.332 MB / 0.5776 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003318/0.3786, allocations: 119.4 kB / 0.5777 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.358e-05/0.3787, allocations: 16 kB / 0.5777 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003161/0.379, allocations: 28.03 kB / 0.5777 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.3791, allocations: 48.34 kB / 0.5778 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.3792, allocations: 60 kB / 0.5778 GB, free: 14.25 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005117/0.3797, allocations: 395 kB / 0.5782 GB, free: 13.86 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3797, allocations: 3.938 kB / 0.5782 GB, free: 13.86 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000841/0.3806, allocations: 176 kB / 0.5784 GB, free: 13.69 MB / 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.002396/0.383, allocations: 1.9 MB / 0.5802 GB, free: 11.71 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001838/0.3848, allocations: 1.096 MB / 0.5813 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.3848, allocations: 0 / 0.5813 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006216/0.3854, allocations: 489 kB / 0.5818 GB, free: 10.03 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009931/0.3864, allocations: 164.7 kB / 0.5819 GB, free: 9.871 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009371/0.3958, allocations: 6.593 MB / 0.5884 GB, free: 2.887 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004689/0.3963, allocations: 413.2 kB / 0.5888 GB, free: 2.457 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004395/0.3967, allocations: 149.8 kB / 0.5889 GB, free: 2.309 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000363/0.3971, allocations: 279.3 kB / 0.5892 GB, free: 2.035 MB / 430.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3971, allocations: 0 / 0.5892 GB, free: 2.035 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0523/0.4494, allocations: 15.43 MB / 0.6042 GB, free: 2.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.52, allocations: 3.188 kB / 0.6042 GB, free: 2.84 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.528184369031806] Failed to read output from testmodel.py, exit status != 0: 12.646159832016565 12.671580443 12.32305823 Calling exit ...