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.001277/0.001277, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001388/0.001388, allocations: 216.9 kB / 23.75 MB, free: 4.668 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.451/1.451, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.1862/0.1862, allocations: 38.52 MB / 352.5 MB, free: 12.52 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.002039/0.002039, allocations: 71.88 kB / 492.6 MB, free: 4.848 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3171, allocations: 62.46 MB / 0.542 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.008886/0.326, allocations: 7.504 MB / 0.5493 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003416/0.3294, allocations: 1.765 MB / 0.5511 GB, free: 9.113 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005086/0.3299, allocations: 39.84 kB / 0.5511 GB, free: 9.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007671/0.3307, allocations: 237.8 kB / 0.5513 GB, free: 8.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001435/0.3321, allocations: 0.5905 MB / 0.5519 GB, free: 8.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005092/0.3326, allocations: 223.4 kB / 0.5521 GB, free: 8.246 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001463/0.3341, allocations: 1.256 MB / 0.5533 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003937/0.3345, allocations: 221.5 kB / 0.5535 GB, free: 7.418 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001003/0.3355, allocations: 0.5698 MB / 0.5541 GB, free: 7.086 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001056/0.3365, allocations: 0.6767 MB / 0.5548 GB, free: 6.695 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.3366, allocations: 67.19 kB / 0.5548 GB, free: 6.691 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001455/0.3368, allocations: 63.47 kB / 0.5549 GB, free: 6.691 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003335/0.3371, allocations: 337.9 kB / 0.5552 GB, free: 6.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004639/0.3376, allocations: 438.5 kB / 0.5556 GB, free: 6.191 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00108/0.3387, allocations: 0.9219 MB / 0.5565 GB, free: 5.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3387, allocations: 0 / 0.5565 GB, free: 5.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3387, allocations: 1.062 kB / 0.5565 GB, free: 5.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.517e-05/0.3387, allocations: 0 / 0.5565 GB, free: 5.57 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.002156/0.3408, allocations: 1.182 MB / 0.5577 GB, free: 4.359 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.3409, allocations: 11.98 kB / 0.5577 GB, free: 4.348 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001331/0.341, allocations: 114.7 kB / 0.5578 GB, free: 4.227 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001545/0.3412, allocations: 96.33 kB / 0.5579 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/0.3424, allocations: 0.6353 MB / 0.5585 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.552e-05/0.3425, allocations: 49.25 kB / 0.5586 GB, free: 3.418 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.3426, allocations: 71.97 kB / 0.5586 GB, free: 3.348 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.3438, allocations: 0.8059 MB / 0.5594 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.3438, allocations: 4 kB / 0.5594 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.672e-05/0.3439, allocations: 28 kB / 0.5594 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-05/0.344, allocations: 33.3 kB / 0.5595 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000992/0.3449, allocations: 0.6179 MB / 0.5601 GB, free: 1.824 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003613/0.3486, allocations: 2.582 MB / 0.5626 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000942/0.3495, allocations: 0.564 MB / 0.5632 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005761/0.3501, allocations: 331 kB / 0.5635 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.055e-05/0.3501, allocations: 12.44 kB / 0.5635 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005986/0.3507, allocations: 479.7 kB / 0.5639 GB, free: 13.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=63): time 1.994e-06/0.3507, allocations: 0 / 0.5639 GB, free: 13.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=64): time 0.00295/0.3537, allocations: 1.92 MB / 0.5658 GB, free: 11.71 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001536/0.3538, allocations: 259.7 kB / 0.5661 GB, free: 11.4 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006828/0.3545, allocations: 0.5703 MB / 0.5666 GB, free: 10.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.242e-05/0.3546, allocations: 37.7 kB / 0.5667 GB, free: 10.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003281/0.3549, allocations: 412.3 kB / 0.567 GB, free: 10.37 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.3551, allocations: 210.2 kB / 0.5673 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/0.3553, allocations: 154.7 kB / 0.5674 GB, free: 10 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.3555, allocations: 386.8 kB / 0.5678 GB, free: 9.617 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003571/0.3558, allocations: 217.9 kB / 0.568 GB, free: 9.402 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005373/0.3563, allocations: 457.8 kB / 0.5684 GB, free: 8.855 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.3574, allocations: 0.7964 MB / 0.5692 GB, free: 7.941 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3574, allocations: 7.938 kB / 0.5692 GB, free: 7.934 MB / 414.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001624/0.359, allocations: 0.9393 MB / 0.5701 GB, free: 6.965 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.108e-05/0.3591, allocations: 71.33 kB / 0.5702 GB, free: 6.883 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.3591, allocations: 7.938 kB / 0.5702 GB, free: 6.875 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003941/0.3595, allocations: 117.8 kB / 0.5703 GB, free: 6.754 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004972/0.36, allocations: 147.7 kB / 0.5704 GB, free: 6.609 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003459/0.3635, allocations: 3.344 MB / 0.5737 GB, free: 3.035 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004544/0.3639, allocations: 40.22 kB / 0.5737 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.443e-05/0.364, allocations: 59.83 kB / 0.5738 GB, free: 2.938 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.0004964/0.3645, allocations: 358.7 kB / 0.5741 GB, free: 2.562 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.922e-05/0.3646, allocations: 75.53 kB / 0.5742 GB, free: 2.488 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001202/0.3658, allocations: 0.7874 MB / 0.575 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.3658, allocations: 4 kB / 0.575 GB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3658, allocations: 4 kB / 0.575 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.3658, allocations: 4 kB / 0.575 GB, free: 1.668 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002295/0.3681, allocations: 1.54 MB / 0.5765 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3681, allocations: 4 kB / 0.5765 GB, free: 60 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005056/0.3686, allocations: 103.9 kB / 0.5766 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/0.3686, allocations: 15.92 kB / 0.5766 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.389e-05/0.3687, allocations: 20 kB / 0.5766 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.836e-06/0.3687, allocations: 7.938 kB / 0.5766 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3687, allocations: 0 / 0.5766 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001675/0.3704, allocations: 1.2 MB / 0.5778 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002753/0.3706, allocations: 115.4 kB / 0.5779 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.691e-05/0.3707, allocations: 16 kB / 0.5779 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003105/0.371, allocations: 19.98 kB / 0.578 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.3711, allocations: 48.3 kB / 0.578 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.236e-05/0.3712, allocations: 67.89 kB / 0.5781 GB, free: 14.41 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004646/0.3717, allocations: 391.1 kB / 0.5784 GB, free: 14.03 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3717, allocations: 0 / 0.5784 GB, free: 14.03 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007402/0.3724, allocations: 180 kB / 0.5786 GB, free: 13.86 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.001961/0.3744, allocations: 1.771 MB / 0.5803 GB, free: 12.04 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001516/0.3759, allocations: 0.9713 MB / 0.5813 GB, free: 11.01 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3759, allocations: 0 / 0.5813 GB, free: 11.01 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005447/0.3765, allocations: 430.6 kB / 0.5817 GB, free: 10.57 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008441/0.3773, allocations: 165.4 kB / 0.5819 GB, free: 10.41 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008721/0.386, allocations: 6.299 MB / 0.588 GB, free: 3.785 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006689/0.3867, allocations: 1.009 MB / 0.589 GB, free: 2.75 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004228/0.3871, allocations: 153.8 kB / 0.5891 GB, free: 2.598 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003506/0.3875, allocations: 283.3 kB / 0.5894 GB, free: 2.32 MB / 430.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3875, allocations: 0 / 0.5894 GB, free: 2.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04846/0.4359, allocations: 14.75 MB / 0.6038 GB, free: 3.742 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.82/14.26, allocations: 7.812 kB / 0.6038 GB, free: 3.738 MB / 446.1 MB " [Timeout remaining time 646] (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: 17.14405179199821] Failed to read output from testmodel.py, exit status != 0: 14.38204162799957 14.411382388 14.067081662 Calling exit ...