Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.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/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/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: translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.009279/0.009279, allocations: 169.5 kB / 15.11 MB, free: 5.973 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.455/1.455, allocations: 205.4 MB / 221.2 MB, free: 13.84 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.0009279/0.0009279, allocations: 94.86 kB / 269.6 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05287/0.05287, allocations: 14.17 MB / 332 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003523/0.0003522, allocations: 9.641 kB / 395 MB, free: 50.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09174/0.09211, allocations: 51.12 MB / 446.1 MB, free: 5.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1029/0.195, allocations: 81.1 MB / 0.5148 GB, free: 4.363 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002006/0.1953, allocations: 67.97 kB / 0.5149 GB, free: 4.297 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/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.007057/0.2024, allocations: 2.736 MB / 0.5175 GB, free: 1.543 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2024, allocations: 0 / 0.5175 GB, free: 1.543 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.2024, allocations: 0 / 0.5175 GB, free: 1.543 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007503/0.2031, allocations: 0.4911 MB / 0.518 GB, free: 1.004 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.2032, allocations: 12.02 kB / 0.518 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.31e-05/0.2033, allocations: 23.89 kB / 0.5181 GB, free: 0.9688 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.2034, allocations: 171 kB / 0.5182 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.2035, allocations: 15.97 kB / 0.5182 GB, free: 0.7461 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.181e-05/0.2035, allocations: 27.92 kB / 0.5183 GB, free: 0.7188 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005578/0.2041, allocations: 381 kB / 0.5186 GB, free: 348 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.595e-06/0.2041, allocations: 4 kB / 0.5186 GB, free: 344 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.544e-05/0.2042, allocations: 7.984 kB / 0.5186 GB, free: 336 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.2042, allocations: 4 kB / 0.5186 GB, free: 332 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001646/0.2043, allocations: 67.92 kB / 0.5187 GB, free: 264 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1962/0.4005, allocations: 367.2 kB / 0.5191 GB, free: 82.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004421/0.401, allocations: 175.1 kB / 0.5192 GB, free: 82.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.4011, allocations: 4.156 kB / 0.5192 GB, free: 82.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008455/0.4019, allocations: 0.5347 MB / 0.5198 GB, free: 82.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 2.324e-06/0.4019, allocations: 0 / 0.5198 GB, free: 82.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.001075/0.403, allocations: 0.6498 MB / 0.5204 GB, free: 82.64 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.4031, allocations: 56.52 kB / 0.5204 GB, free: 82.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.65e-05/0.4032, allocations: 124.1 kB / 0.5206 GB, free: 82.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.082e-05/0.4032, allocations: 44.67 kB / 0.5206 GB, free: 82.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.261e-05/0.4033, allocations: 92.2 kB / 0.5207 GB, free: 82.37 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.901e-05/0.4034, allocations: 72.58 kB / 0.5208 GB, free: 82.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.525e-05/0.4034, allocations: 8.969 kB / 0.5208 GB, free: 82.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.623e-05/0.4035, allocations: 330.6 kB / 0.5211 GB, free: 82.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.4036, allocations: 82.62 kB / 0.5212 GB, free: 82.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.4038, allocations: 152 kB / 0.5213 GB, free: 81.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.855e-05/0.4039, allocations: 48.61 kB / 0.5214 GB, free: 81.95 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.4039, allocations: 3.172 kB / 0.5214 GB, free: 81.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003476/0.4043, allocations: 250 kB / 0.5216 GB, free: 81.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.4043, allocations: 9.141 kB / 0.5216 GB, free: 81.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.4043, allocations: 6.406 kB / 0.5216 GB, free: 81.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.4043, allocations: 2.25 kB / 0.5216 GB, free: 81.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.4044, allocations: 13.69 kB / 0.5216 GB, free: 81.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.4045, allocations: 5.25 kB / 0.5216 GB, free: 81.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002523/0.4047, allocations: 48.17 kB / 0.5217 GB, free: 81.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.4048, allocations: 8.719 kB / 0.5217 GB, free: 81.89 MB / 362.7 MB Warning: Assuming fixed start value for the following 4 variables: locked:DISCRETE(start = lockedStart fixed = true ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderStop:DISCRETE(start = false fixed = true protected = true ) "whether the monitored signal is under the stop limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "wheter the monitored signal is above the maximum limit" type: Boolean running:DISCRETE(start = runningStart fixed = true ) "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 () * Number of clocked 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.0002069/0.405, allocations: 161 kB / 0.5218 GB, free: 81.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.653e-05/0.405, allocations: 27.84 kB / 0.5219 GB, free: 81.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.184e-05/0.4051, allocations: 36.86 kB / 0.5219 GB, free: 81.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.4051, allocations: 2.594 kB / 0.5219 GB, free: 81.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.4051, allocations: 5.328 kB / 0.5219 GB, free: 81.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.4052, allocations: 7.219 kB / 0.5219 GB, free: 81.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002406/0.4054, allocations: 271.4 kB / 0.5222 GB, free: 81.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.4054, allocations: 0 / 0.5222 GB, free: 81.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.917e-05/0.4055, allocations: 12.69 kB / 0.5222 GB, free: 81.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.4055, allocations: 1.391 kB / 0.5222 GB, free: 81.56 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.005e-05/0.4055, allocations: 27.62 kB / 0.5222 GB, free: 81.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.4055, allocations: 5.812 kB / 0.5222 GB, free: 81.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.4055, allocations: 1.344 kB / 0.5222 GB, free: 81.56 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007768/0.4063, allocations: 0.5554 MB / 0.5228 GB, free: 81.49 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.4065, allocations: 118.8 kB / 0.5229 GB, free: 81.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.985e-05/0.4066, allocations: 25.23 kB / 0.5229 GB, free: 81.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.4068, allocations: 49.64 kB / 0.5229 GB, free: 81.38 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002554/0.407, allocations: 112.6 kB / 0.5231 GB, free: 81.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-05/0.4071, allocations: 43.06 kB / 0.5231 GB, free: 81.38 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.571e-05/0.4072, allocations: 103.1 kB / 0.5232 GB, free: 81.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4072, allocations: 0 / 0.5232 GB, free: 81.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002869/0.4075, allocations: 79.78 kB / 0.5233 GB, free: 81.3 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: 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) * Number of clocked states: 0 () * 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.000164/0.4076, allocations: 134 kB / 0.5234 GB, free: 81.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004884/0.4081, allocations: 294.7 kB / 0.5237 GB, free: 81.2 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.4081, allocations: 0 / 0.5237 GB, free: 81.2 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000656/0.4088, allocations: 0.7228 MB / 0.5244 GB, free: 81.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002613/0.4091, allocations: 38.55 kB / 0.5244 GB, free: 81.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000979/0.4101, allocations: 461.8 kB / 0.5249 GB, free: 81.03 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001419/0.4102, allocations: 0.7254 MB / 0.5256 GB, free: 80.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.4104, allocations: 38.59 kB / 0.5256 GB, free: 80.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.4105, allocations: 39.53 kB / 0.5256 GB, free: 80.3 MB / 362.7 MB Notification: Performance of SimCode: time 3.4e-07/0.4105, allocations: 1.125 kB / 0.5256 GB, free: 80.3 MB / 362.7 MB Notification: Performance of Templates: time 0.006612/0.4171, allocations: 3.226 MB / 0.5288 GB, free: 80.11 MB / 362.7 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1)