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.001155/0.001155, allocations: 105.5 kB / 16.27 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.001066/0.001066, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.366/1.366, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.08014/0.08014, allocations: 16.78 MB / 307.8 MB, free: 14.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 63.52 kB / 372.4 MB, free: 48.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09879/0.1003, allocations: 53.56 MB / 426 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget): time 0.02434/0.1247, allocations: 31.64 MB / 457.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03036/0.1551, allocations: 24.22 MB / 481.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003224/0.1583, allocations: 43.81 kB / 481.9 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003547/0.162, allocations: 0.8891 MB / 482.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008225/0.1702, allocations: 2.688 MB / 485.5 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003639/0.1739, allocations: 1.344 MB / 486.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007286/0.1812, allocations: 4.916 MB / 491.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002435/0.1837, allocations: 0.8439 MB / 492.6 MB, free: 9.859 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003107/0.1868, allocations: 1.65 MB / 494.2 MB, free: 8.203 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002974/0.1898, allocations: 1.755 MB / 496 MB, free: 6.441 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008775/0.1907, allocations: 240 kB / 496.2 MB, free: 6.207 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002469/0.1932, allocations: 0.7028 MB / 496.9 MB, free: 5.504 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008502/0.194, allocations: 0.5758 MB / 497.5 MB, free: 4.926 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002895/0.197, allocations: 1.602 MB / 499.1 MB, free: 3.316 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005732/0.2027, allocations: 3.903 MB / 0.4912 GB, free: 15.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.2027, allocations: 0 / 0.4912 GB, free: 15.4 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2028, allocations: 4 kB / 0.4912 GB, free: 15.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001254/0.2029, allocations: 0 / 0.4912 GB, free: 15.4 MB / 382.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.01665/0.2195, allocations: 4.342 MB / 0.4954 GB, free: 10.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.738e-05/0.2196, allocations: 8.031 kB / 0.4955 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00435/0.224, allocations: 0.6184 MB / 0.4961 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004598/0.2286, allocations: 1.724 MB / 0.4977 GB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001873/0.2288, allocations: 163.7 kB / 0.4979 GB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006182/0.2294, allocations: 220 kB / 0.4981 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005832/0.2353, allocations: 2.711 MB / 0.5008 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.846e-05/0.2354, allocations: 15.88 kB / 0.5008 GB, free: 5.254 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004775/0.2359, allocations: 95.97 kB / 0.5009 GB, free: 5.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.356e-05/0.236, allocations: 48 kB / 0.5009 GB, free: 5.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00397/0.2399, allocations: 1.939 MB / 0.5028 GB, free: 3.172 MB / 382.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.207/0.447, allocations: 14.24 MB / 0.5167 GB, free: 72.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003833/0.4508, allocations: 2.583 MB / 0.5192 GB, free: 70.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001663/0.4525, allocations: 1.185 MB / 0.5204 GB, free: 70.36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001078/0.4526, allocations: 27.75 kB / 0.5204 GB, free: 70.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002386/0.455, allocations: 1.64 MB / 0.522 GB, free: 69.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=224): time 4.288e-06/0.455, allocations: 0 / 0.522 GB, free: 69.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=224): time 0.01066/0.4657, allocations: 4.261 MB / 0.5262 GB, free: 68.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.4658, allocations: 109.1 kB / 0.5263 GB, free: 68.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002575/0.4684, allocations: 1.858 MB / 0.5281 GB, free: 67.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002823/0.4687, allocations: 93.5 kB / 0.5282 GB, free: 67.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000548/0.4692, allocations: 0.9144 MB / 0.5291 GB, free: 66.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006547/0.4699, allocations: 0.821 MB / 0.5299 GB, free: 65.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001094/0.471, allocations: 0.9487 MB / 0.5308 GB, free: 65.24 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.932e-05/0.4711, allocations: 301.1 kB / 0.5311 GB, free: 64.94 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002018/0.4731, allocations: 1.492 MB / 0.5326 GB, free: 64.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002234/0.4753, allocations: 2.004 MB / 0.5345 GB, free: 62.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04003/0.5154, allocations: 8.928 MB / 0.5432 GB, free: 54.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.204e-05/0.5154, allocations: 4 kB / 0.5432 GB, free: 54.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=702) (initialization): time 0.00693/0.5223, allocations: 4.733 MB / 0.5479 GB, free: 50.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.5224, allocations: 8 kB / 0.5479 GB, free: 50 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.956e-05/0.5224, allocations: 4 kB / 0.5479 GB, free: 50 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002309/0.5247, allocations: 0.5511 MB / 0.5484 GB, free: 49.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003493/0.5282, allocations: 1.026 MB / 0.5494 GB, free: 48.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006934/0.5352, allocations: 6.179 MB / 0.5554 GB, free: 41.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004188/0.5394, allocations: 368 kB / 0.5558 GB, free: 41.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003292/0.5397, allocations: 168 kB / 0.5559 GB, free: 41.45 MB / 382.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 = 9.999999999999999e+59 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 = 9.999999999999999e+59 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 = 9.999999999999999e+59 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.001256/0.541, allocations: 0.614 MB / 0.5565 GB, free: 40.83 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004921/0.5415, allocations: 253.2 kB / 0.5568 GB, free: 40.58 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003843/0.5454, allocations: 2.742 MB / 0.5595 GB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.897e-05/0.5454, allocations: 18.95 kB / 0.5595 GB, free: 37.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.5454, allocations: 0 / 0.5595 GB, free: 37.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009783/0.5464, allocations: 0.5837 MB / 0.5601 GB, free: 37.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004017/0.5468, allocations: 83.94 kB / 0.5601 GB, free: 37.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001718/0.5485, allocations: 136.6 kB / 0.5603 GB, free: 36.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004392/0.549, allocations: 265.9 kB / 0.5605 GB, free: 36.73 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004836/0.5538, allocations: 2.874 MB / 0.5633 GB, free: 33.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004096/0.5579, allocations: 3.431 MB / 0.5667 GB, free: 30.42 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001407/0.5594, allocations: 1.924 MB / 0.5686 GB, free: 28.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001525/0.5609, allocations: 1.152 MB / 0.5697 GB, free: 27.33 MB / 382.1 MB Notification: Performance of Backend: time 1.924e-06/0.5609, allocations: 0 / 0.5697 GB, free: 27.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007257/0.5682, allocations: 3.853 MB / 0.5734 GB, free: 23.5 MB / 382.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of SimCode: time 0.006214/0.5744, allocations: 5.244 MB / 0.5786 GB, free: 18.25 MB / 382.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