Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_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_symb_jac_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.00153/0.00153, allocations: 114.4 kB / 17.1 MB, free: 5.992 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.001732/0.001732, allocations: 190 kB / 18.03 MB, free: 5.074 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.364/1.364, allocations: 205.1 MB / 223.9 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.06383/0.06383, allocations: 14.16 MB / 285.4 MB, free: 13.87 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.002586/0.002586, allocations: 68.84 kB / 399.3 MB, free: 43.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08801/0.09061, allocations: 50.13 MB / 449.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicInterval): time 0.002576/0.09323, allocations: 1.498 MB / 451 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.09446, allocations: 0.5934 MB / 451.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.023e-05/0.09455, allocations: 4 kB / 451.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.533e-05/0.09459, allocations: 3.938 kB / 451.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001809/0.09477, allocations: 23.78 kB / 451.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002088/0.09499, allocations: 107.8 kB / 451.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002584/0.09526, allocations: 279.4 kB / 452 MB, free: 9.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.098e-05/0.09531, allocations: 7.938 kB / 452 MB, free: 9.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002189/0.09554, allocations: 143.7 kB / 452.1 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001872/0.09574, allocations: 127.7 kB / 452.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.945e-05/0.0958, allocations: 20 kB / 452.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.959e-05/0.09586, allocations: 20 kB / 452.3 MB, free: 9.465 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.197e-05/0.09595, allocations: 87.78 kB / 452.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.0961, allocations: 111.6 kB / 452.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.09634, allocations: 191.5 kB / 452.7 MB, free: 9.082 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.09635, allocations: 0 / 452.7 MB, free: 9.082 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.09636, allocations: 0 / 452.7 MB, free: 9.082 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.09637, allocations: 0 / 452.7 MB, free: 9.082 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.001426/0.0978, allocations: 0.6744 MB / 453.3 MB, free: 8.359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.09785, allocations: 11.97 kB / 453.3 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000166/0.09802, allocations: 28.83 kB / 453.4 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001487/0.09818, allocations: 180.2 kB / 453.6 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.141e-05/0.09822, allocations: 24.28 kB / 453.6 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.95e-05/0.09833, allocations: 36.34 kB / 453.6 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008971/0.09923, allocations: 0.5609 MB / 454.2 MB, free: 7.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.09925, allocations: 0 / 454.2 MB, free: 7.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.813e-05/0.09934, allocations: 23.97 kB / 454.2 MB, free: 7.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.09935, allocations: 0 / 454.2 MB, free: 7.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003322/0.09969, allocations: 143.8 kB / 454.3 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009193/0.1006, allocations: 488.3 kB / 454.8 MB, free: 6.789 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005947/0.1012, allocations: 482.5 kB / 455.3 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005148/0.1017, allocations: 464.8 kB / 455.7 MB, free: 5.852 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.1018, allocations: 4 kB / 455.7 MB, free: 5.848 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001135/0.1029, allocations: 0.7334 MB / 456.5 MB, free: 5.102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 2.184e-06/0.1029, allocations: 0 / 456.5 MB, free: 5.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.001502/0.1044, allocations: 0.9974 MB / 457.5 MB, free: 4.098 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.1045, allocations: 59.19 kB / 457.5 MB, free: 4.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.1046, allocations: 140.4 kB / 457.7 MB, free: 3.883 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.507e-05/0.1047, allocations: 49.69 kB / 457.7 MB, free: 3.828 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.009e-05/0.1048, allocations: 101 kB / 457.8 MB, free: 3.727 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.836e-05/0.1049, allocations: 103.1 kB / 457.9 MB, free: 3.625 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.105, allocations: 74.03 kB / 458 MB, free: 3.547 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002119/0.1052, allocations: 338.8 kB / 458.3 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002565/0.1055, allocations: 125 kB / 458.4 MB, free: 3.086 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002783/0.1058, allocations: 212.7 kB / 458.6 MB, free: 2.852 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005307/0.1063, allocations: 314.4 kB / 459 MB, free: 2.527 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1063, allocations: 0 / 459 MB, free: 2.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0005235/0.1069, allocations: 343.7 kB / 459.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.1069, allocations: 8 kB / 459.3 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.1069, allocations: 0 / 459.3 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.1069, allocations: 4 kB / 459.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.1071, allocations: 31.86 kB / 459.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.1071, allocations: 4 kB / 459.3 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003181/0.1074, allocations: 67.84 kB / 459.4 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.005e-05/0.1075, allocations: 16 kB / 459.4 MB, free: 2.059 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.0002619/0.1077, allocations: 194 kB / 459.6 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.475e-05/0.1078, allocations: 35.8 kB / 459.6 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001219/0.109, allocations: 0.8314 MB / 460.5 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.1091, allocations: 3.984 kB / 460.5 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.1091, allocations: 96 / 460.5 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000265/0.1093, allocations: 144.7 kB / 460.6 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.1095, allocations: 35.89 kB / 460.7 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003405/0.1098, allocations: 67.91 kB / 460.7 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002914/0.1101, allocations: 111.8 kB / 460.8 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001314/0.1114, allocations: 0.8909 MB / 461.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002067/0.1135, allocations: 2.15 MB / 463.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001162/0.1147, allocations: 1.316 MB / 465.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.09e-05/0.1148, allocations: 97.92 kB / 465.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of Backend: time 4.51e-07/0.1148, allocations: 0 / 465.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007683/0.1155, allocations: 348.8 kB / 465.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of SimCode: time 0.001172/0.1167, allocations: 1.159 MB / 466.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of Templates: time 0.01119/0.1279, allocations: 5.263 MB / 472 MB, free: 5.27 MB / 350.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.sim & ./PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_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_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicInterval.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches