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.00146/0.00146, allocations: 180.9 kB / 7.65 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.799/1.799, allocations: 205.3 MB / 213.4 MB, free: 13.77 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.0009039/0.0009039, allocations: 88.86 kB / 261.4 MB, free: 13.44 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.06095/0.06095, allocations: 14.04 MB / 323.4 MB, free: 15.32 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.592e-05/2.583e-05, allocations: 0 / 381.6 MB, free: 73.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1298, allocations: 51.12 MB / 432.7 MB, free: 21.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4576/0.5875, allocations: 82.01 MB / 0.5026 GB, free: 12.12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/0.5879, allocations: 66.66 kB / 0.5027 GB, free: 12.12 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.TestTapChangerLogicInterval is not constant. Notification: Performance of FrontEnd - DAE generated: time 0.008532/0.5964, allocations: 3.447 MB / 0.5061 GB, free: 10.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.5965, allocations: 7.938 kB / 0.5061 GB, free: 10.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.375e-06/0.5965, allocations: 0 / 0.5061 GB, free: 10.68 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008498/0.5973, allocations: 0.5843 MB / 0.5067 GB, free: 10.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.5974, allocations: 7.562 kB / 0.5067 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.5975, allocations: 34.86 kB / 0.5067 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001463/0.5977, allocations: 175.5 kB / 0.5069 GB, free: 10.01 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.411e-05/0.5977, allocations: 17.94 kB / 0.5069 GB, free: 10 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.702e-05/0.5978, allocations: 37.28 kB / 0.5069 GB, free: 9.992 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002329/0.598, allocations: 117.7 kB / 0.507 GB, free: 9.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006426/0.5987, allocations: 0.511 MB / 0.5075 GB, free: 9.758 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.5987, allocations: 0 / 0.5075 GB, free: 9.758 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.748e-05/0.5988, allocations: 15.75 kB / 0.5075 GB, free: 9.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.5988, allocations: 0 / 0.5075 GB, free: 9.75 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006909/0.5995, allocations: 462.5 kB / 0.508 GB, free: 9.379 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004006/0.5999, allocations: 455.5 kB / 0.5084 GB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003816/0.6003, allocations: 442 kB / 0.5088 GB, free: 9.332 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.064e-05/0.6003, allocations: 0 / 0.5088 GB, free: 9.332 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008755/0.6012, allocations: 0.7377 MB / 0.5096 GB, free: 9.004 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 1.573e-06/0.6012, allocations: 0 / 0.5096 GB, free: 9.004 MB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.0008251/0.6021, allocations: 0.7132 MB / 0.5103 GB, free: 8.867 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/0.6021, allocations: 55.22 kB / 0.5103 GB, free: 8.805 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.596e-05/0.6022, allocations: 126.3 kB / 0.5104 GB, free: 8.703 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.667e-05/0.6022, allocations: 44.25 kB / 0.5105 GB, free: 8.668 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.192e-05/0.6023, allocations: 95.72 kB / 0.5106 GB, free: 8.578 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.669e-05/0.6024, allocations: 97.19 kB / 0.5107 GB, free: 8.523 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.799e-05/0.6024, allocations: 4 kB / 0.5107 GB, free: 8.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.854e-05/0.6025, allocations: 332.1 kB / 0.511 GB, free: 8.199 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000152/0.6026, allocations: 113.7 kB / 0.5111 GB, free: 8.199 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.6028, allocations: 192.4 kB / 0.5113 GB, free: 8.121 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.487e-05/0.6029, allocations: 63.88 kB / 0.5113 GB, free: 8.086 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.6029, allocations: 0 / 0.5113 GB, free: 8.086 MB / 330.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0003751/0.6033, allocations: 295.1 kB / 0.5116 GB, free: 8.012 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.6034, allocations: 7.656 kB / 0.5116 GB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.6034, allocations: 3.938 kB / 0.5116 GB, free: 8.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.6034, allocations: 3.719 kB / 0.5116 GB, free: 8.008 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001884/0.6036, allocations: 34.95 kB / 0.5117 GB, free: 7.996 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.6036, allocations: 0 / 0.5117 GB, free: 7.996 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.6039, allocations: 61.59 kB / 0.5117 GB, free: 7.977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.918e-05/0.6039, allocations: 14.78 kB / 0.5117 GB, free: 7.977 MB / 330.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.0002466/0.6042, allocations: 171.1 kB / 0.5119 GB, free: 7.828 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007571/0.605, allocations: 0.7156 MB / 0.5126 GB, free: 7.691 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.285e-05/0.605, allocations: 42.7 kB / 0.5126 GB, free: 7.672 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008338/0.6059, allocations: 0.7467 MB / 0.5134 GB, free: 7.512 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.6059, allocations: 7.781 kB / 0.5134 GB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.6059, allocations: 0 / 0.5134 GB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.6059, allocations: 3.844 kB / 0.5134 GB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002274/0.6061, allocations: 291.6 kB / 0.5137 GB, free: 7.277 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.6061, allocations: 3.953 kB / 0.5137 GB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.688e-05/0.6062, allocations: 11.77 kB / 0.5137 GB, free: 7.266 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.6062, allocations: 3.844 kB / 0.5137 GB, free: 7.266 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.024e-05/0.6063, allocations: 38.2 kB / 0.5137 GB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.6063, allocations: 4 kB / 0.5137 GB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.6063, allocations: 0 / 0.5137 GB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007568/0.6071, allocations: 0.7476 MB / 0.5144 GB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.6072, allocations: 143.8 kB / 0.5146 GB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.8e-05/0.6073, allocations: 31.27 kB / 0.5146 GB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003159/0.6076, allocations: 70.5 kB / 0.5147 GB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002431/0.6079, allocations: 157.2 kB / 0.5148 GB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.677e-05/0.6079, allocations: 61.56 kB / 0.5149 GB, free: 6.777 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.108e-05/0.608, allocations: 101.2 kB / 0.515 GB, free: 6.699 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.608, allocations: 3.938 kB / 0.515 GB, free: 6.695 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002949/0.6083, allocations: 96.62 kB / 0.5151 GB, free: 6.688 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: 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.0009714/0.6093, allocations: 1.334 MB / 0.5164 GB, free: 5.969 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004952/0.6098, allocations: 402.8 kB / 0.5168 GB, free: 5.953 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.6098, allocations: 0 / 0.5168 GB, free: 5.953 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008326/0.6106, allocations: 1.319 MB / 0.5181 GB, free: 5.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.6109, allocations: 37.8 kB / 0.5181 GB, free: 5.914 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.612, allocations: 452.7 kB / 0.5185 GB, free: 5.695 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.6123, allocations: 0.7372 MB / 0.5192 GB, free: 4.977 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001656/0.6124, allocations: 52.61 kB / 0.5193 GB, free: 4.945 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002002/0.6126, allocations: 75.91 kB / 0.5194 GB, free: 4.922 MB / 330.7 MB Notification: Performance of SimCode: time 2.8e-07/0.6127, allocations: 0 / 0.5194 GB, free: 4.922 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02656/0.6392, allocations: 5.852 MB / 0.5251 GB, free: 0.7539 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001557/0.6394, allocations: 145.5 kB / 0.5252 GB, free: 0.5547 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.971/2.61, allocations: 0 / 0.5252 GB, free: 0.5547 MB / 330.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)