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.001424/0.001424, allocations: 112.2 kB / 16.42 MB, free: 6.453 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.001598/0.001598, allocations: 185.7 kB / 17.35 MB, free: 5.734 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.354/1.354, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07586/0.07586, allocations: 16.78 MB / 308 MB, free: 14.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 63.89 kB / 428.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0962/0.09762, allocations: 53.56 MB / 482.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicInterval): time 0.002366/0.1, allocations: 1.505 MB / 483.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.1011, allocations: 0.5536 MB / 484.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.262e-05/0.1012, allocations: 4 kB / 484.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.097e-05/0.1012, allocations: 3.938 kB / 484.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002195/0.1014, allocations: 27.78 kB / 484.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000219/0.1017, allocations: 107.8 kB / 484.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002602/0.1019, allocations: 275.4 kB / 484.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.68e-05/0.102, allocations: 4 kB / 484.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002487/0.1022, allocations: 151.7 kB / 484.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001825/0.1024, allocations: 131.6 kB / 485.1 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.455e-05/0.1025, allocations: 20 kB / 485.1 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.738e-05/0.1025, allocations: 20 kB / 485.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.437e-05/0.1026, allocations: 79.81 kB / 485.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.1028, allocations: 111.7 kB / 485.3 MB, free: 476 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002184/0.103, allocations: 183.5 kB / 485.5 MB, free: 292 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.103, allocations: 3.938 kB / 485.5 MB, free: 288 kB / 350.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.103, allocations: 0 / 485.5 MB, free: 288 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.103, allocations: 0 / 485.5 MB, free: 288 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.001234/0.1043, allocations: 0.6783 MB / 486.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.1043, allocations: 8.031 kB / 486.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.1044, allocations: 36.88 kB / 486.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.1046, allocations: 188.1 kB / 486.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.194e-05/0.1046, allocations: 20.34 kB / 486.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.062e-05/0.1047, allocations: 40.34 kB / 486.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008409/0.1056, allocations: 0.548 MB / 487 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.1056, allocations: 0 / 487 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.603e-05/0.1057, allocations: 19.97 kB / 487 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.1057, allocations: 8 kB / 487 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003322/0.106, allocations: 142.8 kB / 487.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007556/0.1068, allocations: 480.3 kB / 487.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005857/0.1074, allocations: 486.5 kB / 488.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005198/0.1079, allocations: 460.8 kB / 488.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.108, allocations: 4 kB / 488.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001033/0.109, allocations: 0.7444 MB / 489.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 2.074e-06/0.109, allocations: 0 / 489.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=42): time 0.001422/0.1104, allocations: 0.9928 MB / 490.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.1105, allocations: 55.41 kB / 490.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.1106, allocations: 144.1 kB / 490.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.612e-05/0.1107, allocations: 49.69 kB / 490.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.132e-05/0.1108, allocations: 105.1 kB / 490.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.237e-05/0.1108, allocations: 99.41 kB / 490.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.111, allocations: 78.08 kB / 490.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1111, allocations: 334.8 kB / 491.1 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002241/0.1113, allocations: 129 kB / 491.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002775/0.1116, allocations: 216.7 kB / 491.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004785/0.1121, allocations: 327.4 kB / 491.8 MB, free: 9.695 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1121, allocations: 4 kB / 491.8 MB, free: 9.691 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0005243/0.1126, allocations: 347.8 kB / 492.1 MB, free: 9.348 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.1127, allocations: 4 kB / 492.2 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.1127, allocations: 0 / 492.2 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.1127, allocations: 4 kB / 492.2 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.1128, allocations: 31.86 kB / 492.2 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.1129, allocations: 0 / 492.2 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002758/0.1131, allocations: 60.02 kB / 492.2 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.259e-05/0.1132, allocations: 16 kB / 492.3 MB, free: 9.234 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.0002448/0.1134, allocations: 188.2 kB / 492.4 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.938e-05/0.1135, allocations: 39.84 kB / 492.5 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001125/0.1146, allocations: 0.8272 MB / 493.3 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.1147, allocations: 3.984 kB / 493.3 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1147, allocations: 4 kB / 493.3 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001558/0.1148, allocations: 136.8 kB / 493.5 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.1149, allocations: 35.89 kB / 493.5 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00029/0.1152, allocations: 67.91 kB / 493.6 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002661/0.1155, allocations: 119.8 kB / 493.7 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00128/0.1168, allocations: 0.8871 MB / 494.6 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001106/0.1179, allocations: 0.9667 MB / 495.5 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001008/0.1189, allocations: 1.313 MB / 496.8 MB, free: 4.598 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.556e-05/0.119, allocations: 109.1 kB / 496.9 MB, free: 4.492 MB / 366.1 MB Notification: Performance of Backend: time 4.51e-07/0.119, allocations: 0 / 496.9 MB, free: 4.492 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007097/0.1197, allocations: 359.2 kB / 497.3 MB, free: 4.133 MB / 366.1 MB Notification: Performance of SimCode: time 0.0007253/0.1205, allocations: 0.7424 MB / 498 MB, free: 3.344 MB / 366.1 MB Notification: Performance of Templates: time 0.009349/0.1298, allocations: 5.264 MB / 0.4915 GB, free: 14.09 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