Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicInterval,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval") Notification: Performance of loadModel(PowerGrids): time 2.037/2.037, allocations: 220.2 MB / 232.3 MB, free: 12.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.582e-05/4.608e-05, allocations: 7.938 kB / 287.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09931/0.09938, allocations: 51.1 MB / 338.4 MB, free: 2.996 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4066/0.506, allocations: 82.68 MB / 421.1 MB, free: 11.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001982/0.5062, allocations: 69.84 kB / 421.2 MB, free: 11.04 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/PowerGrids 1.0.1/Electrical/Branches/BaseClasses/TapChangerPhaseShifterLogicCommon.mo:13:3-13:48:writable] Error: Variable state: Variable stateStart in package PowerGrids.Electrical.Test.TestTapChangerLogicInterval is not constant. Notification: Performance of FrontEnd - DAE generated: time 0.01361/0.5199, allocations: 3.405 MB / 424.6 MB, free: 7.973 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.199e-06/0.5199, allocations: 0 / 424.6 MB, free: 7.973 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.398e-06/0.5199, allocations: 0 / 424.6 MB, free: 7.973 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001203/0.5211, allocations: 0.5838 MB / 425.1 MB, free: 7.367 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.5212, allocations: 8.031 kB / 425.2 MB, free: 7.359 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001503/0.5214, allocations: 35.8 kB / 425.2 MB, free: 7.324 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001933/0.5216, allocations: 174.9 kB / 425.4 MB, free: 7.113 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.543e-05/0.5216, allocations: 18.66 kB / 425.4 MB, free: 7.098 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.5218, allocations: 39.59 kB / 425.4 MB, free: 7.062 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.5229, allocations: 0.541 MB / 426 MB, free: 6.652 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.612e-06/0.523, allocations: 0 / 426 MB, free: 6.652 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.36e-05/0.5231, allocations: 23.59 kB / 426 MB, free: 6.633 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.5231, allocations: 4 kB / 426 MB, free: 6.629 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004548/0.5236, allocations: 130.2 kB / 426.1 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/0.5247, allocations: 482.3 kB / 426.6 MB, free: 6.059 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007557/0.5254, allocations: 486 kB / 427.1 MB, free: 5.836 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006962/0.5262, allocations: 456.8 kB / 427.5 MB, free: 5.648 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.924e-05/0.5262, allocations: 4 kB / 427.5 MB, free: 5.645 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001486/0.5277, allocations: 0.7526 MB / 428.3 MB, free: 5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=42): time 3.75e-06/0.5277, allocations: 0 / 428.3 MB, free: 5 MB / 346.7 MB Notification: Performance of matching and sorting (n=42): time 0.001583/0.5293, allocations: 0.7693 MB / 429 MB, free: 4.414 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/0.5294, allocations: 59.41 kB / 429.1 MB, free: 4.344 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.5296, allocations: 127.6 kB / 429.2 MB, free: 4.211 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.736e-05/0.5297, allocations: 49.69 kB / 429.3 MB, free: 4.156 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.698e-05/0.5298, allocations: 101 kB / 429.4 MB, free: 4.055 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.5299, allocations: 106.8 kB / 429.5 MB, free: 3.949 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.53, allocations: 8 kB / 429.5 MB, free: 3.941 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.5302, allocations: 334.8 kB / 429.8 MB, free: 3.605 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003149/0.5305, allocations: 121 kB / 429.9 MB, free: 3.488 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003996/0.5309, allocations: 204 kB / 430.1 MB, free: 3.266 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/0.5311, allocations: 65.84 kB / 430.2 MB, free: 3.195 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.281e-06/0.5312, allocations: 4 kB / 430.2 MB, free: 3.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007737/0.5319, allocations: 331.9 kB / 430.5 MB, free: 2.863 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.532, allocations: 4 kB / 430.5 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.532, allocations: 0 / 430.5 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.532, allocations: 4 kB / 430.5 MB, free: 2.855 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.5322, allocations: 31.86 kB / 430.5 MB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/0.5322, allocations: 4 kB / 430.6 MB, free: 2.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004023/0.5327, allocations: 75.91 kB / 430.6 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.946e-05/0.5327, allocations: 16 kB / 430.6 MB, free: 2.73 MB / 346.7 MB Warning: Assuming fixed start value for the following 7 variables: running:DISCRETE(start = runningStart fixed = false ) "whether the tap-changer/phase-shifter is running" type: Boolean tValueInRangeWhileRunning:DISCRETE(start = 9.999999999999999e+59 unit = "s" fixed = false protected = true ) "time when the monitored signal comes back into the [valueMin ; valueMax] range and the tap-changer/phase-shifter is running" type: Real tValueAboveMaxWhileRunning:DISCRETE(start = 9.999999999999999e+59 unit = "s" fixed = false protected = true ) "time when the monitored signal went above the maximum limit and the tap-changer/phase-shifter is running" type: Real locked:DISCRETE(start = lockedStart fixed = false ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderMin:DISCRETE(start = false fixed = false protected = true ) "true if the monitored signal is under the minimum limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = false protected = true ) "true if the monitored signal is above the maximum limit" type: Boolean tValueUnderMinWhileRunning:DISCRETE(start = 9.999999999999999e+59 unit = "s" fixed = false protected = true ) "time when the monitored signal went under the minimum limit and the tap-changer/phase-shifter is running" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 52 (locked,valueUnderMin,valueAboveMax,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition29,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$PRE.state,state,$PRE.locked,$PRE.tap,tap,lookingToIncreaseTap,lookingToDecreaseTap,$PRE.tTapMoved,tTapMoved,$PRE.valueUnderMin,$PRE.valueAboveMax,valueInRange,$PRE.tValueUnderMinWhileRunning,tValueUnderMinWhileRunning,$PRE.tValueAboveMaxWhileRunning,tValueAboveMaxWhileRunning,$PRE.tValueInRangeWhileRunning,tValueInRangeWhileRunning,$PRE.running,running) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000385/0.5331, allocations: 183.1 kB / 430.8 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.5333, allocations: 39.8 kB / 430.9 MB, free: 2.508 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/0.535, allocations: 0.8151 MB / 431.7 MB, free: 1.68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.535, allocations: 4 kB / 431.7 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.719e-06/0.535, allocations: 0 / 431.7 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.5351, allocations: 0 / 431.7 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004875/0.5356, allocations: 333.3 kB / 432 MB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.934e-06/0.5356, allocations: 7.953 kB / 432 MB, free: 1.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.693e-05/0.5357, allocations: 11.94 kB / 432 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.045e-05/0.5357, allocations: 4 kB / 432 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-05/0.5358, allocations: 35.92 kB / 432.1 MB, free: 1.242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.718e-06/0.5358, allocations: 4 kB / 432.1 MB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.313e-06/0.5358, allocations: 0 / 432.1 MB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001594/0.5374, allocations: 0.8009 MB / 432.9 MB, free: 428 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002686/0.5377, allocations: 140.8 kB / 433 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001549/0.5379, allocations: 43.94 kB / 433 MB, free: 224 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004249/0.5384, allocations: 71.92 kB / 433.1 MB, free: 152 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004298/0.5388, allocations: 155.7 kB / 433.3 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001232/0.5389, allocations: 63.88 kB / 433.3 MB, free: 15.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001067/0.5391, allocations: 111.1 kB / 433.4 MB, free: 15.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.68e-07/0.5391, allocations: 3.938 kB / 433.4 MB, free: 15.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005124/0.5396, allocations: 112 kB / 433.6 MB, free: 15.71 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 41 ($whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition29,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,state,locked,tap,lookingToIncreaseTap,lookingToDecreaseTap,tTapMoved,valueUnderMin,valueAboveMax,valueInRange,tValueUnderMinWhileRunning,tValueAboveMaxWhileRunning,tValueInRangeWhileRunning) * Number of discrete states: 9 (tValueInRangeWhileRunning,tValueAboveMaxWhileRunning,tValueUnderMinWhileRunning,tap,valueUnderMin,valueAboveMax,locked,state,tTapMoved) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002723/0.5399, allocations: 156.1 kB / 433.7 MB, free: 15.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.541, allocations: 434.1 kB / 434.1 MB, free: 15.12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.541, allocations: 0 / 434.1 MB, free: 15.12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001691/0.5427, allocations: 1.339 MB / 435.5 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003853/0.5431, allocations: 52.19 kB / 435.5 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.5446, allocations: 430.5 kB / 435.9 MB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.545, allocations: 0.739 MB / 436.7 MB, free: 12.53 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002661/0.5453, allocations: 41.88 kB / 436.7 MB, free: 12.49 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002621/0.5456, allocations: 59.31 kB / 436.8 MB, free: 12.43 MB / 362.7 MB Notification: Performance of SimCode: time 2.206e-06/0.5456, allocations: 0 / 436.8 MB, free: 12.43 MB / 362.7 MB Notification: Performance of Templates: time 0.01306/0.5587, allocations: 4.491 MB / 441.3 MB, free: 7.961 MB / 362.7 MB