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.001489/0.001489, allocations: 174.7 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.251/1.251, allocations: 205.2 MB / 218.5 MB, free: 9.211 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.0008618/0.0008618, allocations: 87.36 kB / 266.6 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05706/0.05706, allocations: 14 MB / 328.7 MB, free: 11.06 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.59e-05/2.619e-05, allocations: 4 kB / 388.6 MB, free: 67.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07172/0.07176, allocations: 51.11 MB / 439.7 MB, free: 16.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2706/0.3424, allocations: 81 MB / 0.5085 GB, free: 11.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001824/0.3427, allocations: 67.97 kB / 0.5086 GB, free: 11.15 MB / 330.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.006185/0.3488, allocations: 2.733 MB / 0.5113 GB, free: 9.863 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3489, allocations: 4 kB / 0.5113 GB, free: 9.859 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.3489, allocations: 3.969 kB / 0.5113 GB, free: 9.859 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.0005759/0.3495, allocations: 483.1 kB / 0.5117 GB, free: 9.449 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.3495, allocations: 11.69 kB / 0.5118 GB, free: 9.445 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.616e-05/0.3496, allocations: 23.42 kB / 0.5118 GB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001059/0.3497, allocations: 170.8 kB / 0.5119 GB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.3497, allocations: 19.53 kB / 0.512 GB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.055e-05/0.3498, allocations: 27.14 kB / 0.512 GB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004462/0.3503, allocations: 369 kB / 0.5123 GB, free: 9.051 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.3503, allocations: 0 / 0.5123 GB, free: 9.051 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.442e-05/0.3503, allocations: 11.48 kB / 0.5123 GB, free: 9.047 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3503, allocations: 3.906 kB / 0.5123 GB, free: 9.047 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001498/0.3505, allocations: 61.55 kB / 0.5124 GB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002838/0.3508, allocations: 377.5 kB / 0.5128 GB, free: 8.699 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001974/0.351, allocations: 167.2 kB / 0.5129 GB, free: 8.672 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.3512, allocations: 163.9 kB / 0.5131 GB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.197e-05/0.3512, allocations: 3.969 kB / 0.5131 GB, free: 8.656 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005855/0.3518, allocations: 0.5291 MB / 0.5136 GB, free: 8.414 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 1.954e-06/0.3518, allocations: 4 kB / 0.5136 GB, free: 8.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=30): time 0.0005824/0.3524, allocations: 0.5124 MB / 0.5141 GB, free: 8.301 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.819e-05/0.3524, allocations: 62.7 kB / 0.5142 GB, free: 8.234 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.329e-05/0.3525, allocations: 120.8 kB / 0.5143 GB, free: 8.137 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.3525, allocations: 47.47 kB / 0.5143 GB, free: 8.102 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.928e-05/0.3526, allocations: 92.11 kB / 0.5144 GB, free: 8.012 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.331e-05/0.3526, allocations: 68.12 kB / 0.5145 GB, free: 7.973 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.286e-05/0.3526, allocations: 7.625 kB / 0.5145 GB, free: 7.973 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.23e-05/0.3527, allocations: 325.5 kB / 0.5148 GB, free: 7.656 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.3528, allocations: 84.36 kB / 0.5149 GB, free: 7.648 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.3529, allocations: 150.9 kB / 0.515 GB, free: 7.574 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.35e-05/0.353, allocations: 53.86 kB / 0.5151 GB, free: 7.551 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.353, allocations: 0 / 0.5151 GB, free: 7.551 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002796/0.3533, allocations: 242.6 kB / 0.5153 GB, free: 7.48 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.3533, allocations: 7.688 kB / 0.5153 GB, free: 7.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.3533, allocations: 0 / 0.5153 GB, free: 7.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.3534, allocations: 3.812 kB / 0.5153 GB, free: 7.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.941e-05/0.3534, allocations: 11.66 kB / 0.5153 GB, free: 7.477 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.3535, allocations: 11.69 kB / 0.5153 GB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/0.3537, allocations: 50.58 kB / 0.5154 GB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.3537, allocations: 11 kB / 0.5154 GB, free: 7.453 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.0001335/0.3538, allocations: 140.5 kB / 0.5155 GB, free: 7.332 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.034e-05/0.3539, allocations: 35.05 kB / 0.5156 GB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.409e-05/0.354, allocations: 39.27 kB / 0.5156 GB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.354, allocations: 0 / 0.5156 GB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.354, allocations: 0 / 0.5156 GB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.354, allocations: 3.844 kB / 0.5156 GB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001551/0.3542, allocations: 267.2 kB / 0.5159 GB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3542, allocations: 0 / 0.5159 GB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.851e-05/0.3542, allocations: 11.02 kB / 0.5159 GB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.3542, allocations: 7.859 kB / 0.5159 GB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.395e-05/0.3542, allocations: 30.36 kB / 0.5159 GB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3543, allocations: 4 kB / 0.5159 GB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3543, allocations: 0 / 0.5159 GB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000542/0.3548, allocations: 0.5427 MB / 0.5164 GB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.3549, allocations: 120.8 kB / 0.5166 GB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.703e-05/0.355, allocations: 30.8 kB / 0.5166 GB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002062/0.3552, allocations: 51.25 kB / 0.5166 GB, free: 6.453 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.3554, allocations: 109 kB / 0.5167 GB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.022e-05/0.3554, allocations: 41.7 kB / 0.5168 GB, free: 6.324 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.36e-05/0.3555, allocations: 95.03 kB / 0.5169 GB, free: 6.238 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3555, allocations: 3.938 kB / 0.5169 GB, free: 6.234 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002404/0.3557, allocations: 79.84 kB / 0.5169 GB, free: 6.164 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.0001126/0.3558, allocations: 137.8 kB / 0.5171 GB, free: 6.027 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000372/0.3562, allocations: 285.4 kB / 0.5174 GB, free: 5.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3562, allocations: 0 / 0.5174 GB, free: 5.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004115/0.3566, allocations: 0.7237 MB / 0.5181 GB, free: 5.598 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.3569, allocations: 37.88 kB / 0.5181 GB, free: 5.57 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006768/0.3576, allocations: 359.3 kB / 0.5184 GB, free: 5.262 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.3577, allocations: 0.726 MB / 0.5191 GB, free: 4.508 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.3578, allocations: 45.84 kB / 0.5192 GB, free: 4.465 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.3579, allocations: 38.84 kB / 0.5192 GB, free: 4.434 MB / 330.7 MB Notification: Performance of SimCode: time 5.01e-07/0.3579, allocations: 0 / 0.5192 GB, free: 4.434 MB / 330.7 MB Notification: Performance of Templates: time 0.004944/0.3629, allocations: 3.236 MB / 0.5224 GB, free: 1.254 MB / 330.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)