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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicInterval,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicInterval,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009355/0.0009354, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009571/0.0009572, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.317/1.317, allocations: 205.4 MB / 222.1 MB, free: 5.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06248/0.06248, allocations: 14.17 MB / 284.5 MB, free: 7.02 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005347/0.0005348, allocations: 12 kB / 347.5 MB, free: 18.56 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08876/0.08931, allocations: 51.11 MB / 398.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicInterval): time 0.001615/0.09096, allocations: 1.184 MB / 399.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001139/0.09213, allocations: 0.5978 MB / 400.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.755e-05/0.09223, allocations: 0 / 400.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.991e-05/0.09226, allocations: 3.938 kB / 400.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002303/0.0925, allocations: 23.89 kB / 400.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.09275, allocations: 91.81 kB / 400.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002374/0.09299, allocations: 143.8 kB / 400.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.294e-05/0.09308, allocations: 7.984 kB / 400.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002958/0.09338, allocations: 159.7 kB / 400.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.09362, allocations: 127.7 kB / 400.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.264e-05/0.09367, allocations: 16 kB / 400.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.312e-05/0.09372, allocations: 24 kB / 400.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.412e-05/0.0938, allocations: 79.8 kB / 401 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.72e-05/0.0939, allocations: 77.62 kB / 401.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001232/0.09403, allocations: 108 kB / 401.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.09404, allocations: 0 / 401.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.09404, allocations: 0 / 401.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.09405, allocations: 0 / 401.2 MB, free: 12.75 MB / 302.1 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.001184/0.09524, allocations: 0.5925 MB / 401.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.09529, allocations: 16.02 kB / 401.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.09544, allocations: 27.89 kB / 401.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001731/0.09562, allocations: 175 kB / 402 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.664e-05/0.09567, allocations: 23.97 kB / 402 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.431e-05/0.09577, allocations: 39.97 kB / 402.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000832/0.09661, allocations: 0.5514 MB / 402.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.09663, allocations: 0 / 402.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.811e-05/0.09671, allocations: 19.97 kB / 402.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.09672, allocations: 4 kB / 402.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002973/0.09702, allocations: 135.9 kB / 402.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007785/0.09781, allocations: 492.2 kB / 403.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005555/0.09837, allocations: 486.5 kB / 403.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.09841, allocations: 7.984 kB / 403.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009814/0.0994, allocations: 0.7329 MB / 404.5 MB, free: 9.309 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 2.254e-06/0.09941, allocations: 0 / 404.5 MB, free: 9.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001322/0.1007, allocations: 0.9809 MB / 405.5 MB, free: 8.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/0.1008, allocations: 63.39 kB / 405.5 MB, free: 8.246 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.1009, allocations: 140.3 kB / 405.7 MB, free: 8.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.714e-05/0.101, allocations: 45.69 kB / 405.7 MB, free: 8.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.356e-05/0.1011, allocations: 105 kB / 405.8 MB, free: 7.945 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.538e-05/0.1012, allocations: 107 kB / 405.9 MB, free: 7.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.909e-05/0.1012, allocations: 4 kB / 405.9 MB, free: 7.836 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.1013, allocations: 330.8 kB / 406.2 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002098/0.1015, allocations: 129 kB / 406.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.1018, allocations: 212.7 kB / 406.6 MB, free: 7.137 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001286/0.102, allocations: 64.91 kB / 406.6 MB, free: 7.074 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.102, allocations: 0 / 406.6 MB, free: 7.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0005124/0.1025, allocations: 335.7 kB / 407 MB, free: 6.738 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.1025, allocations: 4 kB / 407 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.1025, allocations: 8.125 kB / 407 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.1025, allocations: 3.938 kB / 407 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.1027, allocations: 35.86 kB / 407 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.1027, allocations: 4 kB / 407 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/0.103, allocations: 71.84 kB / 407.1 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.309e-05/0.1031, allocations: 19.95 kB / 407.1 MB, free: 6.594 MB / 302.1 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,$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,valueUnderMin,valueAboveMax,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.00025/0.1033, allocations: 188.4 kB / 407.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.35e-05/0.1034, allocations: 39.8 kB / 407.3 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001064/0.1045, allocations: 0.8209 MB / 408.1 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.1045, allocations: 11.98 kB / 408.2 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.1045, allocations: 0 / 408.2 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1045, allocations: 3.984 kB / 408.2 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003024/0.1048, allocations: 341 kB / 408.5 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.1048, allocations: 0 / 408.5 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.845e-05/0.1049, allocations: 11.94 kB / 408.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.1049, allocations: 3.984 kB / 408.5 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.934e-05/0.105, allocations: 39.94 kB / 408.6 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.105, allocations: 4 kB / 408.6 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.105, allocations: 0 / 408.6 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009871/0.106, allocations: 0.8283 MB / 409.4 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001585/0.1061, allocations: 136.7 kB / 409.5 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.1062, allocations: 31.95 kB / 409.5 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003202/0.1066, allocations: 79.91 kB / 409.6 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002731/0.1069, allocations: 155.6 kB / 409.8 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.815e-05/0.1069, allocations: 59.94 kB / 409.8 MB, free: 3.762 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.023e-05/0.107, allocations: 101.1 kB / 409.9 MB, free: 3.664 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.107, allocations: 0 / 409.9 MB, free: 3.664 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003312/0.1073, allocations: 116 kB / 410 MB, free: 3.551 MB / 302.1 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.0001642/0.1075, allocations: 151.1 kB / 410.2 MB, free: 3.395 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006746/0.1082, allocations: 458.6 kB / 410.6 MB, free: 2.949 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1082, allocations: 0 / 410.6 MB, free: 2.949 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.1092, allocations: 1.351 MB / 412 MB, free: 1.598 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002444/0.1095, allocations: 39.91 kB / 412 MB, free: 1.559 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.1106, allocations: 0.546 MB / 412.6 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002511/0.1109, allocations: 0.7351 MB / 413.3 MB, free: 228 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001314/0.111, allocations: 42.36 kB / 413.4 MB, free: 188 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.1112, allocations: 55.38 kB / 413.4 MB, free: 132 kB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1112, allocations: 0 / 413.4 MB, free: 132 kB / 302.1 MB Notification: Performance of Templates: time 0.007388/0.1186, allocations: 4.304 MB / 417.7 MB, free: 11.84 MB / 318.1 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.makefile Environment - environmentSimulation: (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 & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe 2>&1) Environment - environmentSimulation: