Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicInterval,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicInterval",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006725/0.006725, allocations: 170.8 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 205.4 MB / 221.3 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008598/0.0008599, allocations: 86.81 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05253/0.05253, allocations: 14.19 MB / 332 MB, free: 8.715 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003009/0.000301, allocations: 9.469 kB / 395.1 MB, free: 50.4 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.09265, allocations: 51.12 MB / 446.2 MB, free: 5.367 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1099/0.2026, allocations: 82.77 MB / 0.5166 GB, free: 2.484 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/0.2029, allocations: 67.97 kB / 0.5166 GB, free: 2.418 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/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.1958/0.3987, allocations: 3.47 MB / 0.52 GB, free: 82.88 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3987, allocations: 0 / 0.52 GB, free: 82.88 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.3987, allocations: 1.375 kB / 0.52 GB, free: 82.88 MB / 362.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.0009797/0.3997, allocations: 0.604 MB / 0.5206 GB, free: 82.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.3998, allocations: 12.98 kB / 0.5206 GB, free: 82.5 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001118/0.3999, allocations: 54.83 kB / 0.5207 GB, free: 82.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.4, allocations: 29.45 kB / 0.5207 GB, free: 82.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.4001, allocations: 175 kB / 0.5209 GB, free: 82.26 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.558e-05/0.4002, allocations: 21.42 kB / 0.5209 GB, free: 82.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.906e-05/0.4003, allocations: 46.34 kB / 0.5209 GB, free: 82.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009554/0.4012, allocations: 0.544 MB / 0.5215 GB, free: 82.22 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.4013, allocations: 0.9375 kB / 0.5215 GB, free: 82.22 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.312e-05/0.4013, allocations: 21.42 kB / 0.5215 GB, free: 82.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.4014, allocations: 2.656 kB / 0.5215 GB, free: 82.22 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003265/0.4017, allocations: 139.2 kB / 0.5216 GB, free: 82.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008371/0.4025, allocations: 488.7 kB / 0.5221 GB, free: 81.95 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000573/0.4031, allocations: 485.1 kB / 0.5226 GB, free: 81.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/0.4032, allocations: 3.797 kB / 0.5226 GB, free: 81.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001361/0.4045, allocations: 0.7646 MB / 0.5233 GB, free: 81.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.714e-06/0.4045, allocations: 0 / 0.5233 GB, free: 81.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001574/0.4061, allocations: 0.9865 MB / 0.5243 GB, free: 81.8 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.4062, allocations: 62.84 kB / 0.5243 GB, free: 81.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.164e-05/0.4063, allocations: 121.8 kB / 0.5244 GB, free: 81.64 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.558e-05/0.4063, allocations: 51.83 kB / 0.5245 GB, free: 81.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.699e-05/0.4064, allocations: 98.42 kB / 0.5246 GB, free: 81.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.776e-05/0.4065, allocations: 108.9 kB / 0.5247 GB, free: 81.47 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.826e-05/0.4065, allocations: 6.438 kB / 0.5247 GB, free: 81.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.818e-05/0.4066, allocations: 334.5 kB / 0.525 GB, free: 81.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000204/0.4068, allocations: 127.2 kB / 0.5251 GB, free: 81.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002517/0.4071, allocations: 211.5 kB / 0.5253 GB, free: 81.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.4072, allocations: 77.91 kB / 0.5254 GB, free: 81.05 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4072, allocations: 0 / 0.5254 GB, free: 81.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0004991/0.4077, allocations: 336.9 kB / 0.5257 GB, free: 81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.4077, allocations: 9.094 kB / 0.5257 GB, free: 81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.4077, allocations: 2.281 kB / 0.5257 GB, free: 81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.4078, allocations: 3.906 kB / 0.5257 GB, free: 81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.4079, allocations: 30.97 kB / 0.5258 GB, free: 80.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.4079, allocations: 7.516 kB / 0.5258 GB, free: 80.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003029/0.4082, allocations: 68.66 kB / 0.5259 GB, free: 80.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.167e-05/0.4083, allocations: 19.17 kB / 0.5259 GB, free: 80.98 MB / 362.7 MB Warning: Assuming fixed start value for the following 7 variables: running:DISCRETE(start = runningStart fixed = true ) "whether the tap-changer/phase-shifter is running" type: Boolean tValueInRangeWhileRunning:DISCRETE(start = 9.999999999999999e+59 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 tValueAboveMaxWhileRunning:DISCRETE(start = 9.999999999999999e+59 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 locked:DISCRETE(start = lockedStart fixed = true ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderMin:DISCRETE(start = false fixed = true protected = true ) "true if the monitored signal is under the minimum limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "true if the monitored signal is above the maximum limit" type: Boolean tValueUnderMinWhileRunning:DISCRETE(start = 9.999999999999999e+59 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 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 () * Number of clocked 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.0002564/0.4085, allocations: 195.9 kB / 0.5261 GB, free: 80.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.316e-05/0.4086, allocations: 37.42 kB / 0.5261 GB, free: 80.83 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001578/0.4102, allocations: 0.8268 MB / 0.5269 GB, free: 80.78 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.4102, allocations: 5.406 kB / 0.5269 GB, free: 80.78 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.4102, allocations: 0 / 0.5269 GB, free: 80.78 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.4103, allocations: 2.391 kB / 0.5269 GB, free: 80.78 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003342/0.4106, allocations: 332.5 kB / 0.5272 GB, free: 80.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.4106, allocations: 7.453 kB / 0.5272 GB, free: 80.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.061e-05/0.4107, allocations: 11.31 kB / 0.5272 GB, free: 80.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.4107, allocations: 7.969 kB / 0.5272 GB, free: 80.58 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.75e-05/0.4107, allocations: 41.48 kB / 0.5273 GB, free: 80.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.4107, allocations: 0 / 0.5273 GB, free: 80.58 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4107, allocations: 0 / 0.5273 GB, free: 80.58 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.4118, allocations: 0.8216 MB / 0.5281 GB, free: 80.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001643/0.412, allocations: 136.2 kB / 0.5282 GB, free: 80.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.602e-05/0.4121, allocations: 33.28 kB / 0.5283 GB, free: 80.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003059/0.4124, allocations: 79.66 kB / 0.5283 GB, free: 80.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002689/0.4127, allocations: 153.3 kB / 0.5285 GB, free: 80.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.253e-05/0.4128, allocations: 70.91 kB / 0.5285 GB, free: 80.28 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.52e-05/0.4128, allocations: 96.81 kB / 0.5286 GB, free: 80.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.122e-06/0.4128, allocations: 4 kB / 0.5286 GB, free: 80.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003974/0.4132, allocations: 117.7 kB / 0.5288 GB, free: 80.18 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) * Number of clocked states: 0 () * 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.001245/0.4145, allocations: 1.42 MB / 0.5301 GB, free: 79.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007403/0.4152, allocations: 447.7 kB / 0.5306 GB, free: 79.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4152, allocations: 256 / 0.5306 GB, free: 79.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001052/0.4163, allocations: 1.358 MB / 0.5319 GB, free: 78.15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.4166, allocations: 46.25 kB / 0.5319 GB, free: 78.14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.4194, allocations: 2.246 MB / 0.5341 GB, free: 76.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001844/0.4196, allocations: 0.7391 MB / 0.5348 GB, free: 75.85 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001844/0.4198, allocations: 43.86 kB / 0.5349 GB, free: 75.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/0.42, allocations: 83.89 kB / 0.535 GB, free: 75.79 MB / 362.7 MB Notification: Performance of SimCode: time 4.558e-06/0.42, allocations: 0 / 0.535 GB, free: 75.79 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01818/0.4382, allocations: 6.031 MB / 0.5409 GB, free: 73.39 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/0.4384, allocations: 180.3 kB / 0.541 GB, free: 73.15 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.739/2.178, allocations: 3.938 kB / 0.541 GB, free: 73.14 MB / 362.7 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicInterval_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicInterval.fmu > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe 2>&1)