Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget.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.001722/0.001722, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.002154/0.002154, allocations: 217.4 kB / 22.99 MB, free: 4.945 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.478/1.478, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.08289/0.08289, allocations: 16.94 MB / 330.1 MB, free: 2.391 MB / 254.1 MB " [Timeout remaining time 180] Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/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: translateModel(PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget") translateModel(PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget") [Timeout 660] "Notification: PowerGrids 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.00209/0.00209, allocations: 71.89 kB / 461.2 MB, free: 1.801 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1156, allocations: 57.73 MB / 0.5067 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget): time 0.2395/0.3551, allocations: 34.56 MB / 0.5405 GB, free: 12.57 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/TwoPortACVI.mo:4:3-5:21:writable] Warning: Parameter PowerGrids.Electrical.Branches.TransformerWithTapChangerInterval.UNomA has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. Notification: Performance of NFInst.instExpressions: time 0.03444/0.3896, allocations: 23.31 MB / 0.5632 GB, free: 11.84 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003923/0.3935, allocations: 81.16 kB / 0.5633 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004215/0.3977, allocations: 1.138 MB / 0.5644 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01156/0.4093, allocations: 3.649 MB / 0.568 GB, free: 7.953 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004477/0.4138, allocations: 1.38 MB / 0.5693 GB, free: 6.98 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01016/0.4239, allocations: 6.856 MB / 0.576 GB, free: 2.762 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003356/0.4273, allocations: 1.561 MB / 0.5776 GB, free: 1.527 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005254/0.4325, allocations: 2.381 MB / 0.5799 GB, free: 15.61 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005093/0.4376, allocations: 2.24 MB / 0.5821 GB, free: 13.36 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001189/0.4388, allocations: 328 kB / 0.5824 GB, free: 13.04 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003508/0.4423, allocations: 0.8474 MB / 0.5832 GB, free: 12.2 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001328/0.4436, allocations: 0.7702 MB / 0.584 GB, free: 11.42 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004211/0.4479, allocations: 1.836 MB / 0.5858 GB, free: 9.578 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009505/0.4574, allocations: 5.453 MB / 0.5911 GB, free: 4.109 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.4574, allocations: 3.984 kB / 0.5911 GB, free: 4.105 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.4574, allocations: 0 / 0.5911 GB, free: 4.105 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001492/0.4575, allocations: 0 / 0.5911 GB, free: 4.105 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 663 * Number of variables: 663 Notification: Performance of Generate backend data structure: time 0.02232/0.4798, allocations: 5.891 MB / 0.5968 GB, free: 14.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.4799, allocations: 8.031 kB / 0.5969 GB, free: 14.15 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00622/0.4861, allocations: 0.9354 MB / 0.5978 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006286/0.4924, allocations: 2.294 MB / 0.6 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000296/0.4927, allocations: 221.5 kB / 0.6002 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008225/0.4935, allocations: 304.3 kB / 0.6005 GB, free: 10.33 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006884/0.5004, allocations: 3.972 MB / 0.6044 GB, free: 5.906 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.905e-05/0.5005, allocations: 15.88 kB / 0.6044 GB, free: 5.891 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003021/0.5008, allocations: 130.7 kB / 0.6045 GB, free: 5.766 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.558e-05/0.5008, allocations: 72 kB / 0.6046 GB, free: 5.695 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004983/0.5058, allocations: 2.718 MB / 0.6072 GB, free: 2.961 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03005/0.5359, allocations: 16.08 MB / 0.623 GB, free: 2.434 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00494/0.5408, allocations: 2.238 MB / 0.6251 GB, free: 200 kB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002022/0.5428, allocations: 1.029 MB / 0.6261 GB, free: 15.16 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001363/0.543, allocations: 38.28 kB / 0.6262 GB, free: 15.13 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003448/0.5464, allocations: 2.314 MB / 0.6284 GB, free: 12.64 MB / 478.1 MB Notification: Performance of pre-optimization done (n=284): time 9.017e-06/0.5464, allocations: 3.984 kB / 0.6284 GB, free: 12.64 MB / 478.1 MB Notification: Performance of matching and sorting (n=284): time 0.01085/0.5573, allocations: 4.456 MB / 0.6328 GB, free: 8.172 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002909/0.5576, allocations: 487.1 kB / 0.6333 GB, free: 7.594 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004666/0.5622, allocations: 2.672 MB / 0.6359 GB, free: 4.906 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004859/0.5627, allocations: 110 kB / 0.636 GB, free: 4.793 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001542/0.5643, allocations: 1.42 MB / 0.6374 GB, free: 3.359 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001532/0.5658, allocations: 1.101 MB / 0.6384 GB, free: 2.25 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002515/0.5683, allocations: 1.369 MB / 0.6398 GB, free: 0.875 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.5684, allocations: 301.1 kB / 0.6401 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003959/0.5724, allocations: 2.116 MB / 0.6421 GB, free: 14.46 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005014/0.5774, allocations: 3.002 MB / 0.6451 GB, free: 11.32 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0656/0.643, allocations: 12.93 MB / 0.6577 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-05/0.643, allocations: 4 kB / 0.6577 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=998) (initialization): time 0.01466/0.6577, allocations: 6.521 MB / 0.6641 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.039e-05/0.6577, allocations: 8 kB / 0.6641 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.859e-05/0.6578, allocations: 4 kB / 0.6641 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002148/0.6599, allocations: 488.5 kB / 0.6645 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006237/0.6662, allocations: 1.443 MB / 0.6659 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008113/0.6743, allocations: 5.317 MB / 0.6711 GB, free: 300 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006748/0.681, allocations: 0.5013 MB / 0.6716 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001123/0.6821, allocations: 244 kB / 0.6719 GB, free: 15.55 MB / 0.5137 GB Warning: Assuming fixed start value for the following 7 variables: trafo.valueUnderMin:DISCRETE(start = false fixed = true protected = true ) \"true if the monitored signal is under the minimum limit\" type: Boolean trafo.valueAboveMax:DISCRETE(start = false fixed = true protected = true ) \"true if the monitored signal is above the maximum limit\" type: Boolean trafo.tValueUnderMinWhileRunning:DISCRETE(start = 1e60 unit = \"s\" fixed = true protected = true ) \"time when the monitored signal went under the minimum limit and the tap-changer/phase-shifter is running\" type: Real trafo.tValueAboveMaxWhileRunning:DISCRETE(start = 1e60 unit = \"s\" fixed = true protected = true ) \"time when the monitored signal went above the maximum limit and the tap-changer/phase-shifter is running\" type: Real trafo.tValueInRangeWhileRunning:DISCRETE(start = 1e60 unit = \"s\" fixed = true protected = true ) \"time when the monitored signal comes back into the [valueMin ; valueMax] range and the tap-changer/phase-shifter is running\" type: Real trafo.locked:DISCRETE(start = trafo.lockedStart fixed = true ) \"whether the tap-changer/phase-shifter is locked\" type: Boolean trafo.running:DISCRETE(start = trafo.runningStart fixed = true ) \"whether the tap-changer/phase-shifter is running\" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 54 (trafo.running,trafo.locked,busLoad.componentPF.isSlackBus,infiniteBus.componentPF.isSlackBus,$PRE.trafo.valueUnderMin,$PRE.trafo.valueAboveMax,$PRE.trafo.tValueUnderMinWhileRunning,$PRE.trafo.tValueAboveMaxWhileRunning,$PRE.trafo.tValueInRangeWhileRunning,$PRE.trafo.locked,$PRE.trafo.running,trafo.tValueInRangeWhileRunning,trafo.tValueAboveMaxWhileRunning,trafo.tValueUnderMinWhileRunning,trafo.valueInRange,trafo.valueAboveMax,trafo.valueUnderMin,trafo.tTapMoved,$PRE.trafo.tTapMoved,trafo.lookingToDecreaseTap,trafo.lookingToIncreaseTap,trafo.tap,$PRE.trafo.tap,trafo.state,$PRE.trafo.state,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition29,$whenCondition28,$whenCondition27,$whenCondition26,$whenCondition25) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (964): * Single equations (assignments): 962 * Array equations: 0 * Algorithm blocks: 0 * 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 {(16,0,17.2%), (20,0,13.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002592/0.6847, allocations: 0.7821 MB / 0.6726 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001318/0.6861, allocations: 354 kB / 0.673 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005951/0.692, allocations: 3.03 MB / 0.6759 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.744e-05/0.692, allocations: 15.95 kB / 0.6759 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.692, allocations: 4 kB / 0.6759 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002376/0.6944, allocations: 0.6808 MB / 0.6766 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009936/0.6954, allocations: 95.94 kB / 0.6767 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002939/0.6984, allocations: 155.8 kB / 0.6768 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006482/0.699, allocations: 317.6 kB / 0.6771 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007749/0.7068, allocations: 4.093 MB / 0.6811 GB, free: 5.988 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00829/0.715, allocations: 5.177 MB / 0.6862 GB, free: 0.7344 MB / 0.5137 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001966/0.717, allocations: 1.034 MB / 0.6872 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00329/0.7203, allocations: 1.606 MB / 0.6888 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of Backend: time 5.31e-07/0.7203, allocations: 3.938 kB / 0.6888 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01327/0.7336, allocations: 4.261 MB / 0.6929 GB, free: 9.801 MB / 0.5294 GB Notification: Performance of SimCode: time 0.01215/0.7457, allocations: 5.981 MB / 0.6988 GB, free: 3.77 MB / 0.5294 GB [CodegenCpp.tpl:12296:11-12296:11:writable] Error: Template error: Unsupported zero crossing at 2: trafo.running and pre(trafo.state) == trafo.State.locked and not trafo.locked and trafo.valueInRange and time - trafo.tValueInRangeWhileRunning >= trafo.tToStandardState. [CodegenCpp.tpl:12296:11-12296:11:writable] Error: Template error: Unsupported zero crossing at 4: trafo.running and pre(trafo.state) == trafo.State.waitingToMoveUp and time - (if trafo.directAction then trafo.tValueUnderMinWhileRunning else trafo.tValueAboveMaxWhileRunning) >= trafo.t1st and pre(trafo.tap) < 5. [CodegenCpp.tpl:12296:11-12296:11:writable] Error: Template error: Unsupported zero crossing at 5: trafo.running and pre(trafo.state) == trafo.State.waitingToMoveDown and time - (if trafo.directAction then trafo.tValueAboveMaxWhileRunning else trafo.tValueUnderMinWhileRunning) >= trafo.t1st and pre(trafo.tap) > trafo.tapMin. [CodegenCpp.tpl:12296:11-12296:11:writable] Error: Template error: Unsupported zero crossing at 6: trafo.running and pre(trafo.state) == trafo.State.moveUp1 and time - pre(trafo.tTapMoved) >= trafo.tNext and pre(trafo.tap) < 5. Error: Internal error SimCode DAEmode: The model PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget could not be translated " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.4903257661499083] Failed to read output from testmodel.py, exit status != 0: 1.0619884338229895 1.07244973 0.612420274 Calling exit ...