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.001756/0.001756, allocations: 105.3 kB / 16.41 MB, free: 6.414 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.001358/0.001358, allocations: 191.6 kB / 17.34 MB, free: 5.691 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.489/1.489, 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.07993/0.07993, allocations: 16.76 MB / 308 MB, free: 14.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 71.88 kB / 427.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09979/0.101, allocations: 53.56 MB / 480.9 MB, free: 4.918 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.0291/0.1302, allocations: 31.63 MB / 0.5005 GB, free: 5.156 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.2501/0.3803, allocations: 24.22 MB / 0.5241 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002902/0.3833, allocations: 46.5 kB / 0.5242 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003003/0.3863, allocations: 0.8956 MB / 0.525 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008178/0.3945, allocations: 2.834 MB / 0.5278 GB, free: 7.336 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003579/0.3981, allocations: 1.339 MB / 0.5291 GB, free: 6.879 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007226/0.4053, allocations: 4.929 MB / 0.5339 GB, free: 4.441 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001665/0.407, allocations: 0.8511 MB / 0.5348 GB, free: 4.051 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002846/0.4099, allocations: 1.685 MB / 0.5364 GB, free: 3.246 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002824/0.4127, allocations: 1.758 MB / 0.5381 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006865/0.4134, allocations: 242.6 kB / 0.5384 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002327/0.4158, allocations: 0.6983 MB / 0.539 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004948/0.4163, allocations: 0.5782 MB / 0.5396 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002382/0.4187, allocations: 1.6 MB / 0.5412 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0057/0.4244, allocations: 3.971 MB / 0.545 GB, free: 14.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.4244, allocations: 0 / 0.545 GB, free: 14.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4245, allocations: 0 / 0.545 GB, free: 14.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001035/0.4246, allocations: 0 / 0.545 GB, free: 14.61 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.01572/0.4403, allocations: 4.411 MB / 0.5494 GB, free: 11.83 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.4404, allocations: 7.906 kB / 0.5494 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003736/0.4441, allocations: 0.6267 MB / 0.55 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003967/0.4481, allocations: 1.777 MB / 0.5517 GB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.4483, allocations: 166.1 kB / 0.5519 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003623/0.4486, allocations: 222.8 kB / 0.5521 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004303/0.4529, allocations: 2.71 MB / 0.5547 GB, free: 7.289 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.286e-05/0.453, allocations: 15.81 kB / 0.5547 GB, free: 7.273 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002269/0.4532, allocations: 95.97 kB / 0.5548 GB, free: 7.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.184e-05/0.4533, allocations: 52 kB / 0.5549 GB, free: 7.129 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003233/0.4565, allocations: 1.936 MB / 0.5568 GB, free: 5.191 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.01995/0.4765, allocations: 14.21 MB / 0.5707 GB, free: 6.395 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004504/0.481, allocations: 2.584 MB / 0.5732 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001801/0.4828, allocations: 1.192 MB / 0.5743 GB, free: 2.531 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001328/0.483, allocations: 28.11 kB / 0.5744 GB, free: 2.508 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002705/0.4857, allocations: 1.643 MB / 0.576 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of pre-optimization done (n=224): time 7.885e-06/0.4857, allocations: 0 / 0.576 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of matching and sorting (n=224): time 0.01111/0.4969, allocations: 4.273 MB / 0.5801 GB, free: 12.54 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.615e-05/0.497, allocations: 103.1 kB / 0.5802 GB, free: 12.42 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003893/0.5009, allocations: 1.864 MB / 0.5821 GB, free: 10.51 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000369/0.5013, allocations: 93.69 kB / 0.5822 GB, free: 10.41 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001051/0.5023, allocations: 0.942 MB / 0.5831 GB, free: 9.48 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001114/0.5035, allocations: 0.8477 MB / 0.5839 GB, free: 8.648 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002492/0.506, allocations: 0.9635 MB / 0.5848 GB, free: 7.676 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.5061, allocations: 305.1 kB / 0.5851 GB, free: 7.375 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003038/0.5091, allocations: 1.487 MB / 0.5866 GB, free: 5.883 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003548/0.5127, allocations: 2.003 MB / 0.5885 GB, free: 3.785 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04362/0.5563, allocations: 8.854 MB / 0.5972 GB, free: 10.79 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.076e-05/0.5564, allocations: 0 / 0.5972 GB, free: 10.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=702) (initialization): time 0.01159/0.568, allocations: 4.746 MB / 0.6018 GB, free: 5.969 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.352e-05/0.5681, allocations: 10.59 kB / 0.6018 GB, free: 5.961 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.341e-05/0.5681, allocations: 11.94 kB / 0.6018 GB, free: 5.949 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002571/0.5707, allocations: 0.5441 MB / 0.6024 GB, free: 5.398 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004415/0.5751, allocations: 1.03 MB / 0.6034 GB, free: 4.367 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009165/0.5843, allocations: 6.17 MB / 0.6094 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005064/0.5894, allocations: 378 kB / 0.6098 GB, free: 13.56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009604/0.5904, allocations: 172 kB / 0.6099 GB, free: 13.39 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.002086/0.5925, allocations: 0.5923 MB / 0.6105 GB, free: 12.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001028/0.5935, allocations: 274.3 kB / 0.6108 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005463/0.599, allocations: 2.742 MB / 0.6134 GB, free: 9.766 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.626e-05/0.5991, allocations: 19.89 kB / 0.6135 GB, free: 9.746 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.5991, allocations: 0 / 0.6135 GB, free: 9.746 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001725/0.6008, allocations: 0.5927 MB / 0.614 GB, free: 9.133 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000839/0.6017, allocations: 83.94 kB / 0.6141 GB, free: 9.051 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00235/0.604, allocations: 139.8 kB / 0.6143 GB, free: 8.914 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005961/0.6046, allocations: 265.9 kB / 0.6145 GB, free: 8.656 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006376/0.611, allocations: 2.867 MB / 0.6173 GB, free: 5.793 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005644/0.6167, allocations: 3.448 MB / 0.6207 GB, free: 2.32 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002105/0.6188, allocations: 1.912 MB / 0.6225 GB, free: 416 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002384/0.6212, allocations: 1.152 MB / 0.6237 GB, free: 15.23 MB / 478.1 MB Notification: Performance of Backend: time 2.785e-06/0.6213, allocations: 0 / 0.6237 GB, free: 15.23 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01142/0.6327, allocations: 3.856 MB / 0.6274 GB, free: 11.34 MB / 478.1 MB Notification: Performance of SimCode: time 0.01013/0.6429, allocations: 5.298 MB / 0.6326 GB, free: 6.004 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