Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 191.7 kB / 22.23 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 225.6 MB / 251 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07786/0.07786, allocations: 16.93 MB / 323.2 MB, free: 8.141 MB / 254.1 MB " [Timeout remaining time 180] 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.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="Ntap|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="Ntap|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 63.89 kB / 453.6 MB, free: 7.141 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09729/0.09924, allocations: 56.57 MB / 0.4982 GB, free: 14.46 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002417/0.1017, allocations: 1.454 MB / 0.4997 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008848/0.1025, allocations: 0.491 MB / 0.5001 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.503e-05/0.1026, allocations: 0 / 0.5001 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.219e-05/0.1026, allocations: 7.938 kB / 0.5001 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.623e-05/0.1027, allocations: 7.875 kB / 0.5001 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001948/0.1029, allocations: 83.81 kB / 0.5002 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001929/0.1031, allocations: 191.6 kB / 0.5004 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.739e-05/0.1031, allocations: 8 kB / 0.5004 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.1032, allocations: 99.8 kB / 0.5005 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.1033, allocations: 91.72 kB / 0.5006 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.245e-05/0.1034, allocations: 12 kB / 0.5006 GB, free: 12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.405e-05/0.1034, allocations: 12 kB / 0.5006 GB, free: 11.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.648e-05/0.1035, allocations: 55.86 kB / 0.5007 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.1036, allocations: 79.8 kB / 0.5008 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001717/0.1038, allocations: 131.6 kB / 0.5009 GB, free: 11.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1038, allocations: 0 / 0.5009 GB, free: 11.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1038, allocations: 4 kB / 0.5009 GB, free: 11.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.1038, allocations: 4 kB / 0.5009 GB, free: 11.72 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0009476/0.1047, allocations: 485.7 kB / 0.5013 GB, free: 11.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.1048, allocations: 12.92 kB / 0.5014 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.121e-05/0.1048, allocations: 24.81 kB / 0.5014 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.105, allocations: 122.4 kB / 0.5015 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.896e-05/0.105, allocations: 16.34 kB / 0.5015 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.976e-05/0.1051, allocations: 24.36 kB / 0.5015 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006026/0.1057, allocations: 381.4 kB / 0.5019 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.1057, allocations: 3.938 kB / 0.5019 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.951e-05/0.1057, allocations: 15.97 kB / 0.5019 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.226e-06/0.1057, allocations: 3.938 kB / 0.5019 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.1059, allocations: 63.95 kB / 0.502 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003781/0.1063, allocations: 339.7 kB / 0.5023 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002198/0.1065, allocations: 86.55 kB / 0.5024 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001802/0.1067, allocations: 72.8 kB / 0.5025 GB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.1067, allocations: 4 kB / 0.5025 GB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007755/0.1075, allocations: 0.5252 MB / 0.503 GB, free: 9.453 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 1.382e-06/0.1075, allocations: 0 / 0.503 GB, free: 9.453 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.001006/0.1085, allocations: 0.6458 MB / 0.5036 GB, free: 8.801 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.1085, allocations: 55.41 kB / 0.5037 GB, free: 8.734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.1086, allocations: 129.8 kB / 0.5038 GB, free: 8.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.28e-05/0.1087, allocations: 45.69 kB / 0.5038 GB, free: 8.547 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.656e-05/0.1087, allocations: 84.8 kB / 0.5039 GB, free: 8.457 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.015e-05/0.1088, allocations: 79.55 kB / 0.504 GB, free: 8.379 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.22e-05/0.1089, allocations: 57.7 kB / 0.504 GB, free: 8.316 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.109, allocations: 334.8 kB / 0.5044 GB, free: 7.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/0.1092, allocations: 92.14 kB / 0.5044 GB, free: 7.891 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/0.1094, allocations: 159.3 kB / 0.5046 GB, free: 7.711 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003509/0.1098, allocations: 234.3 kB / 0.5048 GB, free: 7.461 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.1098, allocations: 0 / 0.5048 GB, free: 7.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003792/0.1101, allocations: 257 kB / 0.5051 GB, free: 7.203 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.1102, allocations: 4 kB / 0.5051 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1102, allocations: 0 / 0.5051 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.1102, allocations: 8.125 kB / 0.5051 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.958e-05/0.1103, allocations: 19.88 kB / 0.5051 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.1103, allocations: 4 kB / 0.5051 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.1105, allocations: 39.89 kB / 0.5051 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.62e-05/0.1105, allocations: 12 kB / 0.5052 GB, free: 7.117 MB / 382.1 MB Warning: Assuming fixed start value for the following 4 variables: locked:DISCRETE(start = lockedStart fixed = true ) \"whether the tap-changer/phase-shifter is locked\" type: Boolean valueUnderStop:DISCRETE(start = false fixed = true protected = true ) \"whether the monitored signal is under the stop limit\" type: Boolean valueAboveMax:DISCRETE(start = false fixed = true protected = true ) \"wheter the monitored signal is above the maximum limit\" type: Boolean 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: 5 * Number of states: 0 () * Number of discrete variables: 39 ($PRE.locked,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.running,tValueAboveMaxWhileRunning,$PRE.tValueAboveMaxWhileRunning,tTapMoved,$PRE.tTapMoved,lookingToDecreaseTap,lookingToIncreaseTap,tap,$PRE.tap,state,$PRE.state,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition21,$whenCondition20,$whenCondition19,valueAboveMax,valueUnderStop,locked,running) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.000183/0.1107, allocations: 168 kB / 0.5053 GB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.703e-05/0.1108, allocations: 27.89 kB / 0.5053 GB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.976e-05/0.1108, allocations: 33.62 kB / 0.5054 GB, free: 6.887 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.1108, allocations: 4 kB / 0.5054 GB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.1108, allocations: 0 / 0.5054 GB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1108, allocations: 0 / 0.5054 GB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002462/0.1111, allocations: 248.5 kB / 0.5056 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.1111, allocations: 3.984 kB / 0.5056 GB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.118e-05/0.1111, allocations: 7.938 kB / 0.5056 GB, free: 6.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1111, allocations: 0 / 0.5056 GB, free: 6.586 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.107e-05/0.1112, allocations: 31.95 kB / 0.5057 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1112, allocations: 7.984 kB / 0.5057 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1112, allocations: 0 / 0.5057 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007609/0.1119, allocations: 0.5681 MB / 0.5062 GB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.1121, allocations: 43.81 kB / 0.5063 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.434e-05/0.1121, allocations: 19.97 kB / 0.5063 GB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/0.1124, allocations: 47.94 kB / 0.5063 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.1126, allocations: 87.75 kB / 0.5064 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.864e-05/0.1126, allocations: 43.95 kB / 0.5065 GB, free: 5.723 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.899e-05/0.1127, allocations: 95.27 kB / 0.5065 GB, free: 5.629 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1127, allocations: 0 / 0.5065 GB, free: 5.629 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002779/0.113, allocations: 79.97 kB / 0.5066 GB, free: 5.551 MB / 382.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: 30 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,state,locked,tap,lookingToIncreaseTap,lookingToDecreaseTap,tTapMoved,valueUnderStop,valueAboveMax,tValueAboveMaxWhileRunning) * Number of discrete states: 6 (valueAboveMax,tap,locked,state,valueUnderStop,tTapMoved) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001509/0.1131, allocations: 129.2 kB / 0.5067 GB, free: 5.418 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004889/0.1136, allocations: 267.9 kB / 0.507 GB, free: 5.156 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1136, allocations: 4.062 kB / 0.507 GB, free: 5.152 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002782/0.1139, allocations: 175.8 kB / 0.5072 GB, free: 4.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.1142, allocations: 57.06 kB / 0.5072 GB, free: 4.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009255/0.1151, allocations: 429 kB / 0.5076 GB, free: 4.488 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.1154, allocations: 0.7331 MB / 0.5083 GB, free: 3.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001141/0.1155, allocations: 29.98 kB / 0.5084 GB, free: 3.695 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.1157, allocations: 43.39 kB / 0.5084 GB, free: 3.652 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.1157, allocations: 0 / 0.5084 GB, free: 3.652 MB / 382.1 MB Notification: Performance of Templates: time 0.177/0.2926, allocations: 3.839 MB / 0.5122 GB, free: 21.84 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile [Timeout 660] (rm -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.385122987441719]