Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerGrids): time 2.449/2.449, allocations: 220.2 MB / 232.3 MB, free: 12.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.095e-05/4.101e-05, allocations: 6.344 kB / 287.4 MB, free: 6.098 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1244, allocations: 51.1 MB / 338.5 MB, free: 2.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4464/0.5709, allocations: 81 MB / 419.5 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.5712, allocations: 67.58 kB / 419.6 MB, free: 12.71 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.01218/0.5834, allocations: 2.674 MB / 422.3 MB, free: 10.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.5834, allocations: 0 / 422.3 MB, free: 10.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.5835, allocations: 8 kB / 422.3 MB, free: 10.32 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.001157/0.5846, allocations: 483.7 kB / 422.7 MB, free: 9.816 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.5847, allocations: 8.031 kB / 422.7 MB, free: 9.809 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001101/0.5848, allocations: 54.22 kB / 422.8 MB, free: 9.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.585, allocations: 15.91 kB / 422.8 MB, free: 9.734 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001713/0.5851, allocations: 179.6 kB / 423 MB, free: 9.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/0.5852, allocations: 15.42 kB / 423 MB, free: 9.508 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.5853, allocations: 27.94 kB / 423 MB, free: 9.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009133/0.5862, allocations: 371.6 kB / 423.4 MB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.5863, allocations: 0 / 423.4 MB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.339e-05/0.5864, allocations: 7.984 kB / 423.4 MB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.5864, allocations: 4 kB / 423.4 MB, free: 9.188 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002967/0.5867, allocations: 61.3 kB / 423.5 MB, free: 9.145 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005864/0.5873, allocations: 372.4 kB / 423.8 MB, free: 8.758 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003971/0.5877, allocations: 174.4 kB / 424 MB, free: 8.645 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003693/0.5881, allocations: 158.2 kB / 424.2 MB, free: 8.555 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.5881, allocations: 0 / 424.2 MB, free: 8.555 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001223/0.5893, allocations: 0.5333 MB / 424.7 MB, free: 8.086 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 3.216e-06/0.5894, allocations: 0 / 424.7 MB, free: 8.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=30): time 0.001206/0.5906, allocations: 0.517 MB / 425.2 MB, free: 7.711 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.412e-05/0.5907, allocations: 55.41 kB / 425.3 MB, free: 7.645 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001297/0.5908, allocations: 114.4 kB / 425.4 MB, free: 7.535 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.6e-05/0.5909, allocations: 44.5 kB / 425.4 MB, free: 7.492 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.258e-05/0.591, allocations: 99.66 kB / 425.5 MB, free: 7.395 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.103e-05/0.5911, allocations: 68.97 kB / 425.6 MB, free: 7.344 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.599e-05/0.5911, allocations: 7.812 kB / 425.6 MB, free: 7.34 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.5913, allocations: 325.9 kB / 425.9 MB, free: 7.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000239/0.5915, allocations: 83.58 kB / 426 MB, free: 6.965 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003151/0.5918, allocations: 153.3 kB / 426.1 MB, free: 6.832 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/0.592, allocations: 47.52 kB / 426.2 MB, free: 6.789 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.592, allocations: 7.953 kB / 426.2 MB, free: 6.781 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005842/0.5926, allocations: 238.5 kB / 426.4 MB, free: 6.594 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.5927, allocations: 4 kB / 426.4 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.5927, allocations: 0 / 426.4 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.5927, allocations: 7.938 kB / 426.4 MB, free: 6.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.5929, allocations: 15.92 kB / 426.4 MB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.441e-05/0.5929, allocations: 4 kB / 426.5 MB, free: 6.562 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004143/0.5933, allocations: 54.39 kB / 426.5 MB, free: 6.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.5934, allocations: 11.81 kB / 426.5 MB, free: 6.508 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.0002971/0.5937, allocations: 146.3 kB / 426.7 MB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.623e-05/0.5938, allocations: 35.75 kB / 426.7 MB, free: 6.336 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.5939, allocations: 33.62 kB / 426.7 MB, free: 6.328 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.5939, allocations: 8 kB / 426.7 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.5939, allocations: 0 / 426.7 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.594, allocations: 3.984 kB / 426.7 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003852/0.5944, allocations: 272.6 kB / 427 MB, free: 6.031 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.5944, allocations: 0 / 427 MB, free: 6.031 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.107e-05/0.5944, allocations: 11.89 kB / 427 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.5944, allocations: 0 / 427 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.807e-05/0.5945, allocations: 31.75 kB / 427 MB, free: 5.996 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.5945, allocations: 4 kB / 427.1 MB, free: 5.992 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.5946, allocations: 4 kB / 427.1 MB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/0.5957, allocations: 0.5435 MB / 427.6 MB, free: 5.578 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002154/0.596, allocations: 116.8 kB / 427.7 MB, free: 5.445 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.5961, allocations: 31.36 kB / 427.7 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000431/0.5965, allocations: 51.12 kB / 427.8 MB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000351/0.5969, allocations: 102.4 kB / 427.9 MB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.944e-05/0.597, allocations: 49.33 kB / 427.9 MB, free: 5.246 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.836e-05/0.5971, allocations: 99.39 kB / 428 MB, free: 5.152 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5971, allocations: 0 / 428 MB, free: 5.152 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004786/0.5976, allocations: 74.42 kB / 428.1 MB, free: 5.09 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.001763/0.5994, allocations: 1.128 MB / 429.2 MB, free: 4.031 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008946/0.6003, allocations: 276.2 kB / 429.5 MB, free: 3.762 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.6004, allocations: 0 / 429.5 MB, free: 3.762 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001148/0.6015, allocations: 0.7264 MB / 430.2 MB, free: 3.035 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004541/0.602, allocations: 39.91 kB / 430.3 MB, free: 2.996 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.6038, allocations: 412.4 kB / 430.7 MB, free: 2.562 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.6042, allocations: 0.73 MB / 431.4 MB, free: 1.805 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002262/0.6044, allocations: 29.95 kB / 431.4 MB, free: 1.777 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002412/0.6047, allocations: 59.39 kB / 431.5 MB, free: 1.719 MB / 346.7 MB Notification: Performance of SimCode: time 1.724e-06/0.6047, allocations: 0 / 431.5 MB, free: 1.719 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03123/0.6359, allocations: 4.641 MB / 436.1 MB, free: 13.16 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002724/0.6363, allocations: 150.1 kB / 436.3 MB, free: 12.93 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.839/3.476, allocations: 3.938 kB / 436.3 MB, free: 12.93 MB / 362.7 MB