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-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.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTapChangerLogicMax,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax",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.001259/0.001259, allocations: 174.6 kB / 12.73 MB, free: 2.59 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.818/1.818, allocations: 205.2 MB / 218.5 MB, free: 9.145 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.001001/0.001001, allocations: 82.59 kB / 266.6 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05834/0.05834, allocations: 14.03 MB / 328.7 MB, free: 11.04 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.519e-05/3.524e-05, allocations: 4 kB / 388.8 MB, free: 67.17 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1152, allocations: 51.11 MB / 439.9 MB, free: 16.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4512/0.5665, allocations: 81.01 MB / 0.5087 GB, free: 11.28 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.5668, allocations: 66.5 kB / 0.5087 GB, free: 11.27 MB / 330.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.TestTapChangerLogicMax is not constant. Notification: Performance of FrontEnd - DAE generated: time 0.006318/0.5731, allocations: 2.728 MB / 0.5114 GB, free: 9.992 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.5731, allocations: 0 / 0.5114 GB, free: 9.992 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.5732, allocations: 3.844 kB / 0.5114 GB, free: 9.992 MB / 330.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.0006301/0.5738, allocations: 491.5 kB / 0.5119 GB, free: 9.574 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.5738, allocations: 7.688 kB / 0.5119 GB, free: 9.574 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.603e-05/0.5739, allocations: 45.8 kB / 0.5119 GB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.893e-05/0.574, allocations: 19.55 kB / 0.5119 GB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.5741, allocations: 178.1 kB / 0.5121 GB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.5742, allocations: 15.06 kB / 0.5121 GB, free: 9.312 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.201e-05/0.5742, allocations: 27.38 kB / 0.5121 GB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004694/0.5747, allocations: 374.9 kB / 0.5125 GB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.5747, allocations: 0 / 0.5125 GB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.299e-05/0.5748, allocations: 7.828 kB / 0.5125 GB, free: 9.133 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.5748, allocations: 7.922 kB / 0.5125 GB, free: 9.125 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001558/0.5749, allocations: 70.77 kB / 0.5126 GB, free: 9.117 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003476/0.5753, allocations: 371.4 kB / 0.5129 GB, free: 8.777 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000208/0.5755, allocations: 163.3 kB / 0.5131 GB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.5757, allocations: 163 kB / 0.5132 GB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.316e-05/0.5757, allocations: 0 / 0.5132 GB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006293/0.5764, allocations: 0.5405 MB / 0.5138 GB, free: 8.496 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 1.563e-06/0.5764, allocations: 0 / 0.5138 GB, free: 8.496 MB / 330.7 MB Notification: Performance of matching and sorting (n=30): time 0.0006619/0.577, allocations: 0.5156 MB / 0.5143 GB, free: 8.383 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.5771, allocations: 55.25 kB / 0.5143 GB, free: 8.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.058e-05/0.5772, allocations: 116.8 kB / 0.5144 GB, free: 8.227 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.5772, allocations: 49.09 kB / 0.5145 GB, free: 8.191 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.397e-05/0.5773, allocations: 96.3 kB / 0.5146 GB, free: 8.098 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.605e-05/0.5773, allocations: 73.73 kB / 0.5147 GB, free: 8.059 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.211e-05/0.5774, allocations: 3.75 kB / 0.5147 GB, free: 8.059 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.432e-05/0.5774, allocations: 326.4 kB / 0.515 GB, free: 7.742 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.5775, allocations: 84.86 kB / 0.515 GB, free: 7.738 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.5777, allocations: 151.2 kB / 0.5152 GB, free: 7.66 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.039e-05/0.5778, allocations: 51.05 kB / 0.5152 GB, free: 7.641 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.5778, allocations: 3.953 kB / 0.5152 GB, free: 7.637 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002878/0.5781, allocations: 238.6 kB / 0.5155 GB, free: 7.457 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.5781, allocations: 12.06 kB / 0.5155 GB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.5781, allocations: 4 kB / 0.5155 GB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.5782, allocations: 4 kB / 0.5155 GB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.84e-05/0.5782, allocations: 23.67 kB / 0.5155 GB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.5783, allocations: 7.938 kB / 0.5155 GB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001929/0.5785, allocations: 35.59 kB / 0.5156 GB, free: 7.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.16e-05/0.5785, allocations: 11.94 kB / 0.5156 GB, free: 7.371 MB / 330.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.0001437/0.5786, allocations: 145.6 kB / 0.5157 GB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.088e-05/0.5787, allocations: 35.75 kB / 0.5157 GB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.074e-05/0.5788, allocations: 28.75 kB / 0.5158 GB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.5788, allocations: 4 kB / 0.5158 GB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.5788, allocations: 48 / 0.5158 GB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.5788, allocations: 7.969 kB / 0.5158 GB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/0.579, allocations: 275.2 kB / 0.516 GB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.579, allocations: 4 kB / 0.516 GB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.929e-05/0.579, allocations: 15.7 kB / 0.5161 GB, free: 6.887 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.579, allocations: 0 / 0.5161 GB, free: 6.887 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.864e-05/0.5791, allocations: 23.64 kB / 0.5161 GB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.5791, allocations: 0 / 0.5161 GB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.5791, allocations: 0 / 0.5161 GB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005871/0.5797, allocations: 0.5449 MB / 0.5166 GB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.5798, allocations: 128.7 kB / 0.5167 GB, free: 6.316 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.647e-05/0.5799, allocations: 27.86 kB / 0.5168 GB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.5801, allocations: 47.69 kB / 0.5168 GB, free: 6.25 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/0.5803, allocations: 107.4 kB / 0.5169 GB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.421e-05/0.5803, allocations: 42.58 kB / 0.517 GB, free: 6.121 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.904e-05/0.5804, allocations: 97.7 kB / 0.517 GB, free: 6.031 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5804, allocations: 4 kB / 0.517 GB, free: 6.027 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002409/0.5806, allocations: 77.98 kB / 0.5171 GB, free: 5.961 MB / 330.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.0007728/0.5814, allocations: 1.114 MB / 0.5182 GB, free: 4.977 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000388/0.5818, allocations: 280.7 kB / 0.5185 GB, free: 4.797 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.5818, allocations: 4.25 kB / 0.5185 GB, free: 4.793 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004845/0.5823, allocations: 0.7171 MB / 0.5192 GB, free: 4.551 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/0.5826, allocations: 50.97 kB / 0.5192 GB, free: 4.512 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009235/0.5835, allocations: 417.1 kB / 0.5196 GB, free: 4.141 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.5837, allocations: 0.722 MB / 0.5203 GB, free: 3.391 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001142/0.5838, allocations: 37.98 kB / 0.5204 GB, free: 3.355 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.584, allocations: 56.89 kB / 0.5204 GB, free: 3.32 MB / 330.7 MB Notification: Performance of SimCode: time 3.71e-07/0.584, allocations: 0 / 0.5204 GB, free: 3.32 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01692/0.6009, allocations: 4.632 MB / 0.5249 GB, free: 14.82 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002153/0.6012, allocations: 151.1 kB / 0.5251 GB, free: 14.59 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.929/2.53, allocations: 3.5 kB / 0.5251 GB, free: 14.59 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_TestTapChangerLogicMax.fmu > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1)