Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=1000,variableFilter="Ntap|U|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tToStandardState|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicInterval") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicInterval,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Ntap|U|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tToStandardState|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_dev_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.001579/0.001579, allocations: 114.6 kB / 16.42 MB, free: 6.465 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.001878/0.001878, allocations: 189.5 kB / 17.35 MB, free: 5.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.08015/0.08015, allocations: 16.78 MB / 308 MB, free: 14.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 55.91 kB / 428.8 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09088/0.09215, allocations: 53.57 MB / 482.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicInterval): time 0.002638/0.09482, allocations: 1.501 MB / 483.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.09594, allocations: 0.5497 MB / 484.4 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.57e-05/0.09603, allocations: 3.938 kB / 484.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.449e-05/0.09606, allocations: 7.922 kB / 484.4 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002161/0.09631, allocations: 27.78 kB / 484.4 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002286/0.09654, allocations: 103.8 kB / 484.5 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002614/0.09681, allocations: 271.5 kB / 484.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.359e-05/0.09688, allocations: 7.984 kB / 484.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002389/0.09712, allocations: 151.7 kB / 484.9 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001872/0.09732, allocations: 135.5 kB / 485.1 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.998e-05/0.09738, allocations: 20 kB / 485.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.196e-05/0.09742, allocations: 20 kB / 485.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.725e-05/0.09752, allocations: 79.8 kB / 485.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001369/0.09766, allocations: 115.7 kB / 485.3 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002374/0.09791, allocations: 183.4 kB / 485.5 MB, free: 404 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.09792, allocations: 7.938 kB / 485.5 MB, free: 396 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.09793, allocations: 0 / 485.5 MB, free: 396 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.09794, allocations: 0 / 485.5 MB, free: 396 kB / 350.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.001269/0.09921, allocations: 0.6743 MB / 486.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.09926, allocations: 8.031 kB / 486.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.09939, allocations: 32.88 kB / 486.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.09954, allocations: 184.2 kB / 486.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.09958, allocations: 16.34 kB / 486.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.928e-05/0.09967, allocations: 40.34 kB / 486.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008683/0.1005, allocations: 0.548 MB / 487 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.1006, allocations: 3.984 kB / 487 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.367e-05/0.1006, allocations: 19.97 kB / 487 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.1006, allocations: 4 kB / 487 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003342/0.101, allocations: 135.9 kB / 487.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007573/0.1018, allocations: 492.2 kB / 487.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005744/0.1023, allocations: 486.5 kB / 488.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005055/0.1029, allocations: 460.8 kB / 488.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.1029, allocations: 0 / 488.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001063/0.104, allocations: 0.7516 MB / 489.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 2.144e-06/0.104, allocations: 0 / 489.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=42): time 0.001406/0.1054, allocations: 0.985 MB / 490.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.1054, allocations: 63.39 kB / 490.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.1055, allocations: 139.8 kB / 490.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.565e-05/0.1056, allocations: 45.69 kB / 490.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.781e-05/0.1057, allocations: 97.09 kB / 490.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.266e-05/0.1058, allocations: 107.4 kB / 490.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.1059, allocations: 78.08 kB / 490.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.106, allocations: 330.8 kB / 491.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002171/0.1062, allocations: 132.9 kB / 491.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002722/0.1065, allocations: 212.7 kB / 491.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004738/0.107, allocations: 331.4 kB / 491.8 MB, free: 9.816 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.107, allocations: 4 kB / 491.8 MB, free: 9.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0005881/0.1076, allocations: 339.9 kB / 492.1 MB, free: 9.477 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.1076, allocations: 8 kB / 492.1 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.1076, allocations: 3.984 kB / 492.1 MB, free: 9.465 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.1077, allocations: 4 kB / 492.1 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.1078, allocations: 35.92 kB / 492.2 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.1078, allocations: 3.938 kB / 492.2 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003075/0.1081, allocations: 59.83 kB / 492.2 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.526e-05/0.1082, allocations: 16.09 kB / 492.3 MB, free: 9.348 MB / 366.1 MB Warning: Assuming fixed start value for the following 7 variables: 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 = 1e60 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 tValueAboveMaxWhileRunning:DISCRETE(start = 1e60 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 tValueInRangeWhileRunning:DISCRETE(start = 1e60 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 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: 6 * Number of states: 0 () * Number of discrete variables: 52 (locked,$PRE.locked,$PRE.valueUnderMin,$PRE.valueAboveMax,$PRE.tValueUnderMinWhileRunning,$PRE.tValueAboveMaxWhileRunning,$PRE.tValueInRangeWhileRunning,$PRE.running,tValueInRangeWhileRunning,tValueAboveMaxWhileRunning,tValueUnderMinWhileRunning,valueInRange,tTapMoved,$PRE.tTapMoved,lookingToDecreaseTap,lookingToIncreaseTap,tap,$PRE.tap,state,$PRE.state,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition29,$whenCondition28,$whenCondition27,$whenCondition26,$whenCondition25,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,valueAboveMax,valueUnderMin,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002541/0.1084, allocations: 191 kB / 492.4 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.217e-05/0.1085, allocations: 39.84 kB / 492.5 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001122/0.1097, allocations: 0.8311 MB / 493.3 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1097, allocations: 0 / 493.3 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1097, allocations: 4 kB / 493.3 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.1099, allocations: 136.8 kB / 493.5 MB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/0.11, allocations: 43.88 kB / 493.5 MB, free: 8.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003201/0.1103, allocations: 59.91 kB / 493.6 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002749/0.1106, allocations: 119.8 kB / 493.7 MB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001262/0.1119, allocations: 0.8832 MB / 494.6 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001081/0.1129, allocations: 0.9667 MB / 495.5 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001006/0.114, allocations: 1.313 MB / 496.8 MB, free: 4.715 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.456e-05/0.114, allocations: 104.9 kB / 496.9 MB, free: 4.613 MB / 366.1 MB Notification: Performance of Backend: time 6.31e-07/0.114, allocations: 4 kB / 496.9 MB, free: 4.609 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007674/0.1148, allocations: 348.8 kB / 497.3 MB, free: 4.258 MB / 366.1 MB Notification: Performance of SimCode: time 0.0008292/0.1157, allocations: 0.7469 MB / 498 MB, free: 3.461 MB / 366.1 MB Notification: Performance of Templates: time 0.009613/0.1253, allocations: 5.272 MB / 0.4915 GB, free: 14.21 MB / 382.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.makefile (rm -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe ; mkfifo PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe >> ../files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.sim & ./PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicInterval -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe 2>&1) diffSimulationResults("PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicInterval_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicInterval_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches