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.0009119/0.0009119, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0008527/0.0008527, allocations: 177.9 kB / 23.21 MB, free: 1.348 MB / 18.57 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 0.8551/0.8551, allocations: 177.2 MB / 203.5 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.04447/0.04447, allocations: 12.52 MB / 272.5 MB, free: 1.105 MB / 250.7 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: Performance of FrontEnd - loaded program: time 2.385e-06/2.385e-06, allocations: 4 kB / 403.6 MB, free: 9.125 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.776e-05/2.015e-05, allocations: 5.516 kB / 403.6 MB, free: 9.121 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerWithTapChangerTarget): time 0.1822/0.1822, allocations: 34.57 MB / 438.2 MB, free: 2.508 MB / 330.7 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.02039/0.2026, allocations: 23.35 MB / 461.5 MB, free: 280 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00224/0.2049, allocations: 87.44 kB / 461.6 MB, free: 192 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001952/0.2068, allocations: 1.133 MB / 462.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005107/0.2119, allocations: 3.728 MB / 466.5 MB, free: 11.35 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001789/0.2137, allocations: 1.38 MB / 467.9 MB, free: 9.992 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004943/0.2187, allocations: 7.43 MB / 475.3 MB, free: 2.551 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001325/0.22, allocations: 1.568 MB / 476.9 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002605/0.2226, allocations: 3.445 MB / 480.3 MB, free: 13.49 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001495/0.2241, allocations: 2.01 MB / 482.3 MB, free: 11.48 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002651/0.2244, allocations: 332 kB / 482.6 MB, free: 11.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001193/0.2256, allocations: 0.8508 MB / 483.5 MB, free: 10.3 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004201/0.226, allocations: 0.7818 MB / 484.3 MB, free: 9.516 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001034/0.227, allocations: 1.605 MB / 485.9 MB, free: 7.906 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004006/0.231, allocations: 5.438 MB / 491.3 MB, free: 2.453 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.231, allocations: 0 / 491.3 MB, free: 2.453 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.231, allocations: 3.938 kB / 491.3 MB, free: 2.449 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.386e-05/0.2311, allocations: 0 / 491.3 MB, free: 2.449 MB / 378.7 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.009818/0.2409, allocations: 5.848 MB / 497.2 MB, free: 12.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.2409, allocations: 8.031 kB / 497.2 MB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002296/0.2432, allocations: 0.8847 MB / 498.1 MB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002711/0.2459, allocations: 2.289 MB / 0.4886 GB, free: 9.289 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.246, allocations: 221.5 kB / 0.4888 GB, free: 9.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002733/0.2463, allocations: 308.3 kB / 0.4891 GB, free: 8.77 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003661/0.25, allocations: 3.953 MB / 0.493 GB, free: 4.371 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.705e-05/0.25, allocations: 20 kB / 0.493 GB, free: 4.352 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001961/0.2502, allocations: 128.3 kB / 0.4931 GB, free: 4.227 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.848e-05/0.2503, allocations: 75.94 kB / 0.4932 GB, free: 4.152 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002917/0.2532, allocations: 2.718 MB / 0.4959 GB, free: 1.418 MB / 394.7 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.0136/0.2668, allocations: 16.03 MB / 0.5115 GB, free: 0.9453 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002657/0.2694, allocations: 2.253 MB / 0.5137 GB, free: 14.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/0.2705, allocations: 1.026 MB / 0.5147 GB, free: 13.65 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.613e-05/0.2706, allocations: 34.3 kB / 0.5147 GB, free: 13.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001904/0.2725, allocations: 2.325 MB / 0.517 GB, free: 11.12 MB / 426.7 MB Notification: Performance of pre-optimization done (n=284): time 4.478e-06/0.2725, allocations: 0 / 0.517 GB, free: 11.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=284): time 0.005877/0.2784, allocations: 4.444 MB / 0.5214 GB, free: 6.668 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001461/0.2786, allocations: 483.2 kB / 0.5218 GB, free: 6.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002458/0.281, allocations: 2.66 MB / 0.5244 GB, free: 3.41 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001413/0.2812, allocations: 113.7 kB / 0.5245 GB, free: 3.293 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007733/0.2819, allocations: 1.412 MB / 0.5259 GB, free: 1.867 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007234/0.2827, allocations: 1.078 MB / 0.527 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001332/0.284, allocations: 1.365 MB / 0.5283 GB, free: 15.41 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.884e-05/0.2841, allocations: 309.1 kB / 0.5286 GB, free: 15.11 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002216/0.2863, allocations: 2.116 MB / 0.5307 GB, free: 12.99 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002663/0.2889, allocations: 3.003 MB / 0.5336 GB, free: 9.855 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02994/0.3189, allocations: 12.92 MB / 0.5462 GB, free: 12.83 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.79e-05/0.3189, allocations: 7.938 kB / 0.5462 GB, free: 12.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=998) (initialization): time 0.007564/0.3265, allocations: 6.522 MB / 0.5526 GB, free: 6.285 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.995e-05/0.3265, allocations: 8 kB / 0.5526 GB, free: 6.277 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.987e-05/0.3265, allocations: 4 kB / 0.5526 GB, free: 6.273 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/0.3275, allocations: 485.4 kB / 0.5531 GB, free: 5.793 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002858/0.3304, allocations: 1.447 MB / 0.5545 GB, free: 4.344 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004471/0.3349, allocations: 5.307 MB / 0.5596 GB, free: 14.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003299/0.3382, allocations: 0.5051 MB / 0.5601 GB, free: 14.33 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000277/0.3384, allocations: 243.9 kB / 0.5604 GB, free: 14.09 MB / 474.7 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: 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.001409/0.3399, allocations: 0.7711 MB / 0.5611 GB, free: 13.31 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004791/0.3403, allocations: 350 kB / 0.5615 GB, free: 12.96 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003202/0.3435, allocations: 3.018 MB / 0.5644 GB, free: 9.922 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-05/0.3436, allocations: 15.95 kB / 0.5644 GB, free: 9.906 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.3436, allocations: 7.984 kB / 0.5644 GB, free: 9.898 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/0.3447, allocations: 0.6809 MB / 0.5651 GB, free: 9.215 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003127/0.345, allocations: 95.88 kB / 0.5652 GB, free: 9.121 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/0.3461, allocations: 155.8 kB / 0.5653 GB, free: 8.969 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003814/0.3465, allocations: 317.6 kB / 0.5656 GB, free: 8.66 MB / 474.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003598/0.3501, allocations: 4.046 MB / 0.5696 GB, free: 4.59 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004254/0.3543, allocations: 5.162 MB / 0.5746 GB, free: 15.36 MB / 490.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001138/0.3554, allocations: 1.021 MB / 0.5756 GB, free: 14.34 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001651/0.3571, allocations: 1.602 MB / 0.5772 GB, free: 12.73 MB / 490.7 MB Notification: Performance of Backend: time 5.81e-07/0.3571, allocations: 0 / 0.5772 GB, free: 12.73 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006589/0.3637, allocations: 4.266 MB / 0.5814 GB, free: 8.438 MB / 490.7 MB Notification: Performance of SimCode: time 0.005824/0.3695, allocations: 5.942 MB / 0.5872 GB, free: 2.441 MB / 490.7 MB [CodegenCpp.tpl:12351:11-12351: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:12351:11-12351: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:12351:11-12351: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:12351:11-12351: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: 2.158548996783793] Failed to read output from testmodel.py, exit status != 0: 0.5902523556724191 0.595703525 0.36339680499999993 Calling exit ...