Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") Notification: Performance of loadModel(PowerGrids): time 2.136/2.136, allocations: 220.2 MB / 232.3 MB, free: 12.24 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.517e-05/4.536e-05, allocations: 6.5 kB / 287.3 MB, free: 6.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09918/0.09925, allocations: 51.1 MB / 338.4 MB, free: 3.004 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3906/0.4899, allocations: 81 MB / 419.4 MB, free: 12.78 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.4902, allocations: 69.53 kB / 419.5 MB, free: 12.75 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.TestTapChangerLogicMax is not constant. Notification: Performance of FrontEnd - DAE generated: time 0.01055/0.5008, allocations: 2.679 MB / 422.2 MB, free: 10.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.592e-06/0.5008, allocations: 0 / 422.2 MB, free: 10.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.864e-06/0.5009, allocations: 0 / 422.2 MB, free: 10.36 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0009163/0.5018, allocations: 487.2 kB / 422.6 MB, free: 9.852 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.5019, allocations: 11.97 kB / 422.6 MB, free: 9.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.502, allocations: 23.89 kB / 422.7 MB, free: 9.816 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/0.5022, allocations: 163.8 kB / 422.8 MB, free: 9.617 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.872e-05/0.5023, allocations: 19.05 kB / 422.8 MB, free: 9.602 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.854e-05/0.5024, allocations: 31.22 kB / 422.9 MB, free: 9.574 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000784/0.5032, allocations: 366.6 kB / 423.2 MB, free: 9.293 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.244e-06/0.5032, allocations: 4 kB / 423.2 MB, free: 9.289 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.657e-05/0.5033, allocations: 15.16 kB / 423.3 MB, free: 9.277 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8e-06/0.5033, allocations: 4 kB / 423.3 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002492/0.5036, allocations: 54.31 kB / 423.3 MB, free: 9.234 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005607/0.5041, allocations: 380 kB / 423.7 MB, free: 8.844 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003418/0.5045, allocations: 165.8 kB / 423.8 MB, free: 8.738 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003177/0.5048, allocations: 158.7 kB / 424 MB, free: 8.648 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.5049, allocations: 8 kB / 424 MB, free: 8.641 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001105/0.506, allocations: 0.5259 MB / 424.5 MB, free: 8.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 3.897e-06/0.506, allocations: 0 / 424.5 MB, free: 8.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=30): time 0.001075/0.5071, allocations: 0.5162 MB / 425 MB, free: 7.805 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.5072, allocations: 55.41 kB / 425.1 MB, free: 7.738 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.5073, allocations: 115.7 kB / 425.2 MB, free: 7.629 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.982e-05/0.5074, allocations: 48.38 kB / 425.3 MB, free: 7.582 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.651e-05/0.5075, allocations: 91.67 kB / 425.3 MB, free: 7.492 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.539e-05/0.5076, allocations: 76.72 kB / 425.4 MB, free: 7.434 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.777e-05/0.5076, allocations: 3.938 kB / 425.4 MB, free: 7.434 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.5078, allocations: 329.4 kB / 425.7 MB, free: 7.109 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002081/0.508, allocations: 87.2 kB / 425.8 MB, free: 7.051 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/0.5083, allocations: 149.6 kB / 426 MB, free: 6.922 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001421/0.5085, allocations: 41.59 kB / 426 MB, free: 6.883 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.5085, allocations: 0 / 426 MB, free: 6.883 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005314/0.509, allocations: 246.5 kB / 426.3 MB, free: 6.688 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.5091, allocations: 8 kB / 426.3 MB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.109e-06/0.5091, allocations: 3.984 kB / 426.3 MB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.5091, allocations: 12.16 kB / 426.3 MB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.5092, allocations: 14.62 kB / 426.3 MB, free: 6.652 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.5093, allocations: 4 kB / 426.3 MB, free: 6.648 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002858/0.5096, allocations: 42.45 kB / 426.3 MB, free: 6.613 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.661e-05/0.5096, allocations: 8 kB / 426.4 MB, free: 6.605 MB / 346.7 MB Warning: Assuming fixed start value for the following 4 variables: locked:DISCRETE(start = lockedStart fixed = false ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderStop:DISCRETE(start = false fixed = false protected = true ) "whether the monitored signal is under the stop limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = false protected = true ) "wheter the monitored signal is above the maximum limit" type: Boolean running:DISCRETE(start = runningStart fixed = false ) "whether the tap-changer/phase-shifter is running" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 39 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$PRE.state,state,$PRE.locked,$PRE.tap,tap,lookingToIncreaseTap,lookingToDecreaseTap,$PRE.tTapMoved,tTapMoved,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.tValueAboveMaxWhileRunning,tValueAboveMaxWhileRunning,$PRE.running,valueAboveMax,valueUnderStop,locked,running) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0002923/0.5099, allocations: 165.4 kB / 426.5 MB, free: 6.453 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.227e-05/0.51, allocations: 27.77 kB / 426.5 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.375e-05/0.5101, allocations: 37.98 kB / 426.6 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.691e-06/0.5101, allocations: 0 / 426.6 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.113e-06/0.5101, allocations: 0 / 426.6 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.205e-06/0.5102, allocations: 4 kB / 426.6 MB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003701/0.5105, allocations: 272 kB / 426.8 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.063e-06/0.5106, allocations: 4 kB / 426.9 MB, free: 6.121 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.257e-05/0.5106, allocations: 11.92 kB / 426.9 MB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.991e-06/0.5106, allocations: 3.953 kB / 426.9 MB, free: 6.105 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.754e-05/0.5107, allocations: 26.33 kB / 426.9 MB, free: 6.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.718e-06/0.5107, allocations: 0 / 426.9 MB, free: 6.086 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.556e-06/0.5107, allocations: 4 kB / 426.9 MB, free: 6.082 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.5118, allocations: 0.5447 MB / 427.4 MB, free: 5.672 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002107/0.512, allocations: 120.3 kB / 427.6 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.5121, allocations: 26.72 kB / 427.6 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002975/0.5124, allocations: 54.06 kB / 427.6 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002867/0.5127, allocations: 106 kB / 427.7 MB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.176e-05/0.5128, allocations: 41.83 kB / 427.8 MB, free: 5.34 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.017e-05/0.5129, allocations: 95.28 kB / 427.9 MB, free: 5.254 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.5129, allocations: 7.938 kB / 427.9 MB, free: 5.246 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004127/0.5134, allocations: 81.28 kB / 428 MB, free: 5.176 MB / 346.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: 30 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,state,locked,tap,lookingToIncreaseTap,lookingToDecreaseTap,tTapMoved,valueUnderStop,valueAboveMax,tValueAboveMaxWhileRunning) * Number of discrete states: 6 (valueAboveMax,tap,locked,state,valueUnderStop,tTapMoved) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002276/0.5136, allocations: 139.6 kB / 428.1 MB, free: 5.035 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000671/0.5143, allocations: 277.6 kB / 428.4 MB, free: 4.855 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.81e-06/0.5143, allocations: 0 / 428.4 MB, free: 4.855 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000911/0.5152, allocations: 0.7148 MB / 429.1 MB, free: 4.207 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.5156, allocations: 39.94 kB / 429.1 MB, free: 4.168 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.5168, allocations: 367 kB / 429.5 MB, free: 3.793 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/0.5172, allocations: 0.7258 MB / 430.2 MB, free: 3.039 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000188/0.5174, allocations: 29.95 kB / 430.2 MB, free: 3.012 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001674/0.5176, allocations: 39.39 kB / 430.3 MB, free: 2.973 MB / 346.7 MB Notification: Performance of SimCode: time 1.748e-06/0.5176, allocations: 4 kB / 430.3 MB, free: 2.969 MB / 346.7 MB Notification: Performance of Templates: time 0.01365/0.5312, allocations: 3.243 MB / 433.5 MB, free: 15.75 MB / 362.7 MB