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.001325/0.001326, allocations: 105.6 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.001263/0.001263, allocations: 189.8 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.421/1.421, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.08518/0.08518, allocations: 16.69 MB / 307.7 MB, free: 14.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 62.58 kB / 372.3 MB, free: 48.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09471/0.09665, allocations: 53.55 MB / 425.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget): time 0.02669/0.1234, allocations: 31.64 MB / 457.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03234/0.1557, allocations: 24.22 MB / 481.7 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00293/0.1587, allocations: 51.75 kB / 481.8 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00326/0.162, allocations: 0.8853 MB / 482.7 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00807/0.1701, allocations: 2.69 MB / 485.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003804/0.1739, allocations: 1.344 MB / 486.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008313/0.1823, allocations: 4.9 MB / 491.6 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002193/0.1845, allocations: 0.8517 MB / 492.5 MB, free: 10.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003186/0.1877, allocations: 1.658 MB / 494.1 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003286/0.191, allocations: 1.747 MB / 495.9 MB, free: 6.609 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009756/0.192, allocations: 240 kB / 496.1 MB, free: 6.375 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002661/0.1947, allocations: 0.7067 MB / 496.8 MB, free: 5.668 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001018/0.1957, allocations: 0.5757 MB / 497.4 MB, free: 5.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00317/0.1989, allocations: 1.606 MB / 499 MB, free: 3.477 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006452/0.2054, allocations: 3.899 MB / 0.4911 GB, free: 15.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.2054, allocations: 3.984 kB / 0.4911 GB, free: 15.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2054, allocations: 0 / 0.4911 GB, free: 15.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001044/0.2056, allocations: 0 / 0.4911 GB, free: 15.56 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.01616/0.2217, allocations: 4.338 MB / 0.4953 GB, free: 11.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.2218, allocations: 8.031 kB / 0.4953 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003934/0.2257, allocations: 0.6262 MB / 0.496 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004339/0.2301, allocations: 1.716 MB / 0.4976 GB, free: 8.754 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002278/0.2303, allocations: 167.7 kB / 0.4978 GB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006501/0.231, allocations: 220 kB / 0.498 GB, free: 8.375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005982/0.237, allocations: 2.711 MB / 0.5006 GB, free: 5.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.727e-05/0.2371, allocations: 11.88 kB / 0.5007 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003775/0.2375, allocations: 99.97 kB / 0.5008 GB, free: 5.324 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.794e-05/0.2375, allocations: 48 kB / 0.5008 GB, free: 5.277 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004032/0.2416, allocations: 1.939 MB / 0.5027 GB, free: 3.336 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.2177/0.4593, allocations: 14.23 MB / 0.5166 GB, free: 72.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003548/0.4629, allocations: 2.583 MB / 0.5191 GB, free: 71.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001422/0.4644, allocations: 1.184 MB / 0.5203 GB, free: 70.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000101/0.4645, allocations: 32.94 kB / 0.5203 GB, free: 70.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002516/0.467, allocations: 1.641 MB / 0.5219 GB, free: 70.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=224): time 5.891e-06/0.467, allocations: 0 / 0.5219 GB, free: 70.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=224): time 0.01065/0.4777, allocations: 4.262 MB / 0.5261 GB, free: 68.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.4778, allocations: 106 kB / 0.5262 GB, free: 68.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002511/0.4803, allocations: 1.852 MB / 0.528 GB, free: 67.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002083/0.4805, allocations: 105.5 kB / 0.5281 GB, free: 67.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006104/0.4811, allocations: 0.9181 MB / 0.529 GB, free: 66.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006601/0.4818, allocations: 0.8117 MB / 0.5298 GB, free: 66.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001099/0.4829, allocations: 0.9565 MB / 0.5307 GB, free: 65.49 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.88e-05/0.483, allocations: 301.1 kB / 0.531 GB, free: 65.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001955/0.4849, allocations: 1.491 MB / 0.5324 GB, free: 64.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002158/0.4871, allocations: 2.004 MB / 0.5344 GB, free: 63.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03834/0.5254, allocations: 8.926 MB / 0.5431 GB, free: 55.08 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.5255, allocations: 0 / 0.5431 GB, free: 55.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=702) (initialization): time 0.007172/0.5327, allocations: 4.733 MB / 0.5477 GB, free: 50.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.402e-05/0.5327, allocations: 4 kB / 0.5477 GB, free: 50.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.239e-05/0.5328, allocations: 7.984 kB / 0.5477 GB, free: 50.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002256/0.535, allocations: 0.5513 MB / 0.5483 GB, free: 49.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003789/0.5388, allocations: 1.03 MB / 0.5493 GB, free: 48.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006904/0.5458, allocations: 6.175 MB / 0.5553 GB, free: 42.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004509/0.5503, allocations: 373.3 kB / 0.5557 GB, free: 41.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005287/0.5509, allocations: 168 kB / 0.5558 GB, free: 41.71 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.00157/0.5525, allocations: 0.6111 MB / 0.5564 GB, free: 41.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006528/0.5531, allocations: 255.4 kB / 0.5567 GB, free: 40.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004011/0.5571, allocations: 2.746 MB / 0.5594 GB, free: 38.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.975e-05/0.5572, allocations: 9.375 kB / 0.5594 GB, free: 38.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.5572, allocations: 0 / 0.5594 GB, free: 38.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/0.5586, allocations: 0.5798 MB / 0.5599 GB, free: 37.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004752/0.5591, allocations: 83.94 kB / 0.56 GB, free: 37.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001807/0.5609, allocations: 136.5 kB / 0.5601 GB, free: 37.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004582/0.5613, allocations: 269.9 kB / 0.5604 GB, free: 37 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004941/0.5663, allocations: 2.877 MB / 0.5632 GB, free: 34.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004226/0.5705, allocations: 3.439 MB / 0.5666 GB, free: 30.69 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001433/0.572, allocations: 1.912 MB / 0.5684 GB, free: 28.78 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001643/0.5737, allocations: 1.16 MB / 0.5696 GB, free: 27.59 MB / 382.1 MB Notification: Performance of Backend: time 1.733e-06/0.5737, allocations: 0 / 0.5696 GB, free: 27.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007714/0.5814, allocations: 3.848 MB / 0.5733 GB, free: 23.77 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.006382/0.5878, allocations: 5.254 MB / 0.5785 GB, free: 18.52 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