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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget") translateModel(PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 110.5 kB / 16.41 MB, free: 6.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 188.1 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07596/0.07596, allocations: 16.77 MB / 308 MB, free: 14.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 67.89 kB / 427.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1059, allocations: 53.55 MB / 480.8 MB, free: 4.914 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:4:3-5:21:writable] Warning: Parameter infiniteBus.componentPF.UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:6:3-7:21:writable] Warning: Parameter infiniteBus.componentPF.SNom has no value, and is fixed during initialization (fixed=true), using available start value (start=100e6) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/TwoPortACVI.mo:4:3-5:21:writable] Warning: Parameter trafo.componentPF.UNomA has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/TwoPortACVI.mo:8:3-9:21:writable] Warning: Parameter trafo.componentPF.SNom has no value, and is fixed during initialization (fixed=true), using available start value (start=100e6) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:4:3-5:21:writable] Warning: Parameter busLoad.componentPF.UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/OnePortACVI.mo:6:3-7:21:writable] Warning: Parameter busLoad.componentPF.SNom has no value, and is fixed during initialization (fixed=true), using available start value (start=100e6) as default value. Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget): time 0.03005/0.136, allocations: 31.66 MB / 0.5005 GB, free: 5.133 MB / 382.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. [/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.componentPF.UNomA has no value, and is fixed during initialization (fixed=true), using available start value (start=400e3) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/Electrical/BaseClasses/TwoPortACVI.mo:8:3-9:21:writable] Warning: Parameter PowerGrids.Electrical.Branches.TransformerWithTapChangerInterval.componentPF.SNom has no value, and is fixed during initialization (fixed=true), using available start value (start=100e6) as default value. Notification: Performance of NFInst.instExpressions: time 0.2726/0.4086, allocations: 24.2 MB / 0.5241 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0032/0.4119, allocations: 46.5 kB / 0.5242 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003565/0.4155, allocations: 0.8901 MB / 0.525 GB, free: 8.043 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008889/0.4244, allocations: 2.682 MB / 0.5277 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003875/0.4283, allocations: 1.344 MB / 0.529 GB, free: 6.969 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008284/0.4366, allocations: 4.932 MB / 0.5338 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001989/0.4386, allocations: 0.848 MB / 0.5346 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00335/0.442, allocations: 1.689 MB / 0.5363 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004095/0.4461, allocations: 1.75 MB / 0.538 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001476/0.4476, allocations: 240.3 kB / 0.5382 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004138/0.4518, allocations: 0.7069 MB / 0.5389 GB, free: 2.402 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.4529, allocations: 0.5752 MB / 0.5395 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003899/0.4569, allocations: 1.6 MB / 0.541 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007731/0.4646, allocations: 3.947 MB / 0.5449 GB, free: 14.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.026e-05/0.4647, allocations: 6.906 kB / 0.5449 GB, free: 14.72 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.4647, allocations: 0 / 0.5449 GB, free: 14.72 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001464/0.4649, allocations: 0 / 0.5449 GB, free: 14.72 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: 469 * Number of variables: 469 Notification: Performance of Generate backend data structure: time 0.01761/0.4825, allocations: 4.336 MB / 0.5491 GB, free: 12.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.725e-05/0.4825, allocations: 12.38 kB / 0.5491 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004347/0.4869, allocations: 0.6155 MB / 0.5497 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004751/0.4917, allocations: 1.758 MB / 0.5514 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002237/0.4919, allocations: 164.5 kB / 0.5516 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007895/0.4927, allocations: 226.8 kB / 0.5518 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006132/0.4989, allocations: 2.715 MB / 0.5545 GB, free: 7.562 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.036e-05/0.4989, allocations: 7.938 kB / 0.5545 GB, free: 7.555 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003935/0.4993, allocations: 95.97 kB / 0.5546 GB, free: 7.461 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.16e-05/0.4994, allocations: 48 kB / 0.5546 GB, free: 7.414 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00356/0.503, allocations: 1.939 MB / 0.5565 GB, free: 5.473 MB / 398.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.02227/0.5252, allocations: 14.19 MB / 0.5704 GB, free: 6.691 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00485/0.5301, allocations: 2.587 MB / 0.5729 GB, free: 4.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002029/0.5322, allocations: 1.192 MB / 0.5741 GB, free: 2.824 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001582/0.5324, allocations: 34.75 kB / 0.5741 GB, free: 2.797 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003004/0.5354, allocations: 1.63 MB / 0.5757 GB, free: 1.156 MB / 414.1 MB Notification: Performance of pre-optimization done (n=224): time 6.142e-06/0.5355, allocations: 0 / 0.5757 GB, free: 1.156 MB / 414.1 MB Notification: Performance of matching and sorting (n=224): time 0.0116/0.5471, allocations: 4.267 MB / 0.5798 GB, free: 12.84 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.939e-05/0.5472, allocations: 107 kB / 0.5799 GB, free: 12.72 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003967/0.5512, allocations: 1.863 MB / 0.5818 GB, free: 10.81 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000498/0.5517, allocations: 93.69 kB / 0.5819 GB, free: 10.71 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001158/0.5529, allocations: 0.913 MB / 0.5827 GB, free: 9.809 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001344/0.5542, allocations: 0.8139 MB / 0.5835 GB, free: 9.008 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002682/0.5569, allocations: 0.9591 MB / 0.5845 GB, free: 8.039 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.5571, allocations: 313.1 kB / 0.5848 GB, free: 7.73 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002832/0.56, allocations: 1.483 MB / 0.5862 GB, free: 6.242 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003365/0.5633, allocations: 1.999 MB / 0.5882 GB, free: 4.148 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04283/0.6062, allocations: 8.863 MB / 0.5968 GB, free: 11.14 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.715e-05/0.6063, allocations: 0 / 0.5968 GB, free: 11.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=702) (initialization): time 0.01323/0.6195, allocations: 4.725 MB / 0.6014 GB, free: 6.344 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.034e-05/0.6196, allocations: 12.25 kB / 0.6015 GB, free: 6.332 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.746e-05/0.6197, allocations: 9.344 kB / 0.6015 GB, free: 6.324 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002621/0.6223, allocations: 0.5428 MB / 0.602 GB, free: 5.777 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004415/0.6268, allocations: 1.034 MB / 0.603 GB, free: 4.742 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009204/0.636, allocations: 6.155 MB / 0.609 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00507/0.6411, allocations: 373.2 kB / 0.6094 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007885/0.6419, allocations: 172 kB / 0.6095 GB, free: 13.78 MB / 462.1 MB 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: 19 * 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 (664): * Single equations (assignments): 662 * 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%), (24,0,11.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002122/0.6441, allocations: 0.5915 MB / 0.6101 GB, free: 13.19 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001031/0.6451, allocations: 253.2 kB / 0.6104 GB, free: 12.94 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005348/0.6505, allocations: 2.738 MB / 0.613 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.843e-05/0.6505, allocations: 19.89 kB / 0.613 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.6505, allocations: 0 / 0.613 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001979/0.6525, allocations: 0.5876 MB / 0.6136 GB, free: 9.551 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009496/0.6535, allocations: 75.95 kB / 0.6137 GB, free: 9.477 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002666/0.6562, allocations: 139.7 kB / 0.6138 GB, free: 9.34 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006131/0.6568, allocations: 269.9 kB / 0.6141 GB, free: 9.078 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006269/0.6631, allocations: 2.865 MB / 0.6169 GB, free: 6.219 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006076/0.6692, allocations: 3.439 MB / 0.6202 GB, free: 2.754 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002028/0.6713, allocations: 1.912 MB / 0.6221 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002553/0.6739, allocations: 1.156 MB / 0.6232 GB, free: 15.66 MB / 478.1 MB Notification: Performance of Backend: time 7.52e-07/0.6739, allocations: 0 / 0.6232 GB, free: 15.66 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01131/0.6852, allocations: 3.848 MB / 0.627 GB, free: 11.78 MB / 478.1 MB Notification: Performance of SimCode: time 0.00981/0.6951, allocations: 5.215 MB / 0.6321 GB, free: 6.527 MB / 478.1 MB [CodegenCpp.tpl:12250:11-12250: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:12250:11-12250: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:12250:11-12250: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:12250:11-12250: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