Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicInterval,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicInterval",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerGrids): time 2.318/2.318, allocations: 220.2 MB / 232.3 MB, free: 12.22 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.409e-05/4.418e-05, allocations: 7.938 kB / 287.4 MB, free: 6.102 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1193, allocations: 51.1 MB / 338.5 MB, free: 2.902 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4554/0.5748, allocations: 82.68 MB / 421.2 MB, free: 10.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.5751, allocations: 69.2 kB / 421.3 MB, free: 10.66 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.01665/0.5918, allocations: 3.404 MB / 424.7 MB, free: 7.594 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.5919, allocations: 0 / 424.7 MB, free: 7.594 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.5919, allocations: 0 / 424.7 MB, free: 7.594 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.001659/0.5936, allocations: 0.5855 MB / 425.2 MB, free: 6.984 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.5936, allocations: 12.78 kB / 425.3 MB, free: 6.973 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001483/0.5938, allocations: 58.28 kB / 425.3 MB, free: 6.914 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001704/0.594, allocations: 31.8 kB / 425.3 MB, free: 6.883 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.5942, allocations: 171 kB / 425.5 MB, free: 6.676 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.393e-05/0.5942, allocations: 23.09 kB / 425.5 MB, free: 6.656 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001643/0.5944, allocations: 47.72 kB / 425.6 MB, free: 6.613 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.5958, allocations: 0.5345 MB / 426.1 MB, free: 6.207 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.5958, allocations: 0 / 426.1 MB, free: 6.207 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/0.596, allocations: 23.16 kB / 426.1 MB, free: 6.188 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.596, allocations: 0 / 426.1 MB, free: 6.188 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005468/0.5965, allocations: 134.5 kB / 426.3 MB, free: 6.098 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.5978, allocations: 490.8 kB / 426.8 MB, free: 5.609 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008974/0.5987, allocations: 481.6 kB / 427.2 MB, free: 5.391 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008041/0.5995, allocations: 455.6 kB / 427.7 MB, free: 5.203 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.518e-05/0.5996, allocations: 0 / 427.7 MB, free: 5.203 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00177/0.6014, allocations: 0.7514 MB / 428.4 MB, free: 4.555 MB / 346.7 MB Notification: Performance of pre-optimization done (n=42): time 3.136e-06/0.6014, allocations: 0 / 428.4 MB, free: 4.555 MB / 346.7 MB Notification: Performance of matching and sorting (n=42): time 0.001818/0.6032, allocations: 0.7721 MB / 429.2 MB, free: 4.012 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.966e-05/0.6033, allocations: 66.89 kB / 429.3 MB, free: 3.938 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/0.6035, allocations: 122.5 kB / 429.4 MB, free: 3.816 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001057/0.6036, allocations: 52.31 kB / 429.4 MB, free: 3.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.982e-05/0.6037, allocations: 95.27 kB / 429.5 MB, free: 3.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.6038, allocations: 104 kB / 429.6 MB, free: 3.602 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.721e-05/0.6039, allocations: 6.938 kB / 429.6 MB, free: 3.598 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.604, allocations: 335.8 kB / 430 MB, free: 3.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003646/0.6044, allocations: 128.3 kB / 430.1 MB, free: 3.195 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004589/0.6049, allocations: 191.5 kB / 430.3 MB, free: 3.039 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002387/0.6051, allocations: 81.81 kB / 430.3 MB, free: 2.953 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.6052, allocations: 0 / 430.3 MB, free: 2.953 MB / 346.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.000873/0.606, allocations: 319.9 kB / 430.7 MB, free: 2.637 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.6061, allocations: 4 kB / 430.7 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.6061, allocations: 4 kB / 430.7 MB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.6061, allocations: 4 kB / 430.7 MB, free: 2.625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002284/0.6064, allocations: 31.86 kB / 430.7 MB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.801e-05/0.6064, allocations: 4 kB / 430.7 MB, free: 2.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005827/0.607, allocations: 75.91 kB / 430.8 MB, free: 2.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-05/0.6071, allocations: 16 kB / 430.8 MB, free: 2.5 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.0004518/0.6075, allocations: 186.4 kB / 431 MB, free: 2.312 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.6077, allocations: 39.8 kB / 431 MB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00203/0.6097, allocations: 0.8151 MB / 431.8 MB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.6098, allocations: 4 kB / 431.8 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.6098, allocations: 4 kB / 431.8 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.6098, allocations: 0 / 431.8 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005772/0.6104, allocations: 333.3 kB / 432.2 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.6104, allocations: 0 / 432.2 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001318/0.6106, allocations: 19.92 kB / 432.2 MB, free: 1.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.25e-05/0.6106, allocations: 4 kB / 432.2 MB, free: 1.039 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.864e-05/0.6107, allocations: 39.92 kB / 432.2 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.541e-06/0.6107, allocations: 0 / 432.2 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6107, allocations: 0 / 432.2 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001872/0.6126, allocations: 0.8048 MB / 433 MB, free: 180 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002881/0.6129, allocations: 136.8 kB / 433.2 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/0.6132, allocations: 39.89 kB / 433.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006498/0.6138, allocations: 79.91 kB / 433.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005112/0.6144, allocations: 151.7 kB / 433.4 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/0.6145, allocations: 67.92 kB / 433.5 MB, free: 15.69 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001001/0.6146, allocations: 101 kB / 433.6 MB, free: 15.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6146, allocations: 0 / 433.6 MB, free: 15.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005841/0.6152, allocations: 116 kB / 433.7 MB, free: 15.48 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.002438/0.6177, allocations: 1.4 MB / 435.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.619, allocations: 437.4 kB / 435.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.619, allocations: 0 / 435.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001829/0.6208, allocations: 1.336 MB / 436.9 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004664/0.6213, allocations: 51.86 kB / 436.9 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002107/0.6234, allocations: 0.4886 MB / 437.4 MB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/0.6238, allocations: 0.7429 MB / 438.2 MB, free: 10.95 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002876/0.6241, allocations: 45.88 kB / 438.2 MB, free: 10.9 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003372/0.6244, allocations: 79.38 kB / 438.3 MB, free: 10.82 MB / 362.7 MB Notification: Performance of SimCode: time 3.507e-06/0.6245, allocations: 0 / 438.3 MB, free: 10.82 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03698/0.6615, allocations: 6.234 MB / 444.5 MB, free: 4.68 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003142/0.6618, allocations: 151.5 kB / 444.7 MB, free: 4.457 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.831/3.493, allocations: 4 kB / 444.7 MB, free: 4.453 MB / 362.7 MB