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.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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="mat",numberOfIntervals=1000,variableFilter="Ntap|U|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tToStandardState|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_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_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.001512/0.001512, allocations: 115.3 kB / 16.42 MB, free: 6.02 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.001745/0.001745, allocations: 186.1 kB / 17.35 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.244/1.244, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06181/0.06181, allocations: 14.17 MB / 284.8 MB, free: 13.86 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.001557/0.001557, allocations: 71.08 kB / 398.7 MB, free: 43.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08125/0.08282, allocations: 50.13 MB / 448.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicInterval): time 0.002341/0.0852, allocations: 1.498 MB / 450.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.08623, allocations: 0.5896 MB / 450.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.245e-05/0.08628, allocations: 0 / 450.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.23e-05/0.08633, allocations: 11.86 kB / 450.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001852/0.08652, allocations: 27.78 kB / 450.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000177/0.0867, allocations: 107.8 kB / 451 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002285/0.08694, allocations: 271.5 kB / 451.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.823e-05/0.087, allocations: 7.938 kB / 451.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.0872, allocations: 151.7 kB / 451.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.08736, allocations: 131.6 kB / 451.6 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.991e-05/0.08742, allocations: 23.94 kB / 451.6 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.451e-05/0.08747, allocations: 20 kB / 451.6 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.703e-05/0.08755, allocations: 75.81 kB / 451.7 MB, free: 9.258 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001353/0.08769, allocations: 115.6 kB / 451.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001998/0.0879, allocations: 179.5 kB / 452 MB, free: 8.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.08791, allocations: 0 / 452 MB, free: 8.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.08792, allocations: 0 / 452 MB, free: 8.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.08792, allocations: 0 / 452 MB, free: 8.969 MB / 334.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.001237/0.08917, allocations: 0.6783 MB / 452.7 MB, free: 8.242 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.08921, allocations: 8.031 kB / 452.7 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.08934, allocations: 32.83 kB / 452.7 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/0.08948, allocations: 180.1 kB / 452.9 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.054e-05/0.08952, allocations: 28.28 kB / 452.9 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.324e-05/0.08962, allocations: 40.34 kB / 452.9 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008456/0.09047, allocations: 0.5596 MB / 453.5 MB, free: 7.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.09048, allocations: 0 / 453.5 MB, free: 7.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.013e-05/0.09056, allocations: 15.97 kB / 453.5 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.09057, allocations: 4 kB / 453.5 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003205/0.0909, allocations: 135.9 kB / 453.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000743/0.09165, allocations: 488.3 kB / 454.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005837/0.09225, allocations: 490.4 kB / 454.6 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005014/0.09276, allocations: 464.8 kB / 455.1 MB, free: 5.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.09278, allocations: 7.984 kB / 455.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009613/0.09375, allocations: 0.729 MB / 455.8 MB, free: 4.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.844e-06/0.09376, allocations: 0 / 455.8 MB, free: 4.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001367/0.09513, allocations: 0.9935 MB / 456.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.09519, allocations: 67.19 kB / 456.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.819e-05/0.09529, allocations: 140.4 kB / 457 MB, free: 3.762 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.69e-05/0.09536, allocations: 53.69 kB / 457 MB, free: 3.703 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.251e-05/0.09542, allocations: 93.05 kB / 457.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.177e-05/0.09551, allocations: 107 kB / 457.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/0.09563, allocations: 74.05 kB / 457.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.09575, allocations: 338.8 kB / 457.6 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/0.09597, allocations: 133 kB / 457.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.09624, allocations: 204.8 kB / 458 MB, free: 2.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004608/0.0967, allocations: 326.3 kB / 458.3 MB, free: 2.395 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.09671, allocations: 0 / 458.3 MB, free: 2.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0004997/0.09722, allocations: 335.7 kB / 458.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.09724, allocations: 4 kB / 458.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.09725, allocations: 4 kB / 458.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.09727, allocations: 0 / 458.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.09741, allocations: 28.05 kB / 458.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.09743, allocations: 11.98 kB / 458.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.09774, allocations: 59.73 kB / 458.7 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.921e-05/0.09777, allocations: 15.98 kB / 458.7 MB, free: 1.941 MB / 334.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.0002289/0.09801, allocations: 188.1 kB / 458.9 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.115e-05/0.09809, allocations: 39.78 kB / 459 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001119/0.09921, allocations: 0.8315 MB / 459.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.09923, allocations: 96 / 459.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.09924, allocations: 3.938 kB / 459.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.0994, allocations: 140.7 kB / 459.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.09952, allocations: 47.88 kB / 460 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003142/0.09984, allocations: 51.92 kB / 460 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002596/0.1001, allocations: 123.8 kB / 460.2 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001253/0.1014, allocations: 0.883 MB / 461 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001085/0.1025, allocations: 0.9706 MB / 462 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000981/0.1035, allocations: 1.308 MB / 463.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.384e-05/0.1035, allocations: 109.8 kB / 463.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of Backend: time 5.21e-07/0.1035, allocations: 0 / 463.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007029/0.1042, allocations: 348.8 kB / 463.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of SimCode: time 0.0006841/0.1049, allocations: 0.7437 MB / 464.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of Templates: time 0.008549/0.1135, allocations: 5.256 MB / 469.8 MB, free: 6.816 MB / 350.1 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.makefile (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 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe 2>&1) diffSimulationResults("PowerGrids_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_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches