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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009235/0.0009235, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 177 kB / 23.36 MB, free: 1.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.003/1.003, allocations: 177.1 MB / 203.8 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] 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.06953/0.06953, allocations: 13.11 MB / 273.4 MB, free: 224 kB / 250.7 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Ignoring simflag -noemit -emit_protected=() since the simulation runtime does not accept it 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 1.413e-06/1.413e-06, allocations: 0 / 296.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.413e-05/2.554e-05, allocations: 2.312 kB / 296.2 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002369/0.002395, allocations: 1.48 MB / 297.6 MB, free: 9.926 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000994/0.003389, allocations: 0.5213 MB / 298.2 MB, free: 9.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.648e-05/0.003435, allocations: 0 / 298.2 MB, free: 9.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.379e-05/0.003459, allocations: 4.688 kB / 298.2 MB, free: 9.586 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.384e-05/0.003553, allocations: 12.28 kB / 298.2 MB, free: 9.578 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.003813, allocations: 80.86 kB / 298.3 MB, free: 9.543 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002121/0.004025, allocations: 188.5 kB / 298.4 MB, free: 9.484 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.295e-05/0.004068, allocations: 3.469 kB / 298.4 MB, free: 9.484 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002008/0.004269, allocations: 132.7 kB / 298.6 MB, free: 9.438 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.004398, allocations: 71.91 kB / 298.6 MB, free: 9.418 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.687e-05/0.004435, allocations: 11.97 kB / 298.7 MB, free: 9.418 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.53e-05/0.004461, allocations: 17.22 kB / 298.7 MB, free: 9.418 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.405e-05/0.004515, allocations: 58.55 kB / 298.7 MB, free: 9.387 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.024e-05/0.004605, allocations: 71.11 kB / 298.8 MB, free: 9.355 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002454/0.00485, allocations: 165.6 kB / 299 MB, free: 9.289 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.004855, allocations: 4 kB / 299 MB, free: 9.285 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.004857, allocations: 1.188 kB / 299 MB, free: 9.285 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.004862, allocations: 0.7031 kB / 299 MB, free: 9.285 MB / 266.7 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.0009063/0.005768, allocations: 447.2 kB / 299.4 MB, free: 9.008 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.005816, allocations: 9.844 kB / 299.4 MB, free: 9.008 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001492/0.005965, allocations: 46.92 kB / 299.5 MB, free: 9.008 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001119/0.006077, allocations: 122.1 kB / 299.6 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.006107, allocations: 17.31 kB / 299.6 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.398e-05/0.006171, allocations: 24.59 kB / 299.6 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006023/0.006774, allocations: 425.7 kB / 300 MB, free: 8.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.415e-06/0.006782, allocations: 1.5 kB / 300 MB, free: 8.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.978e-05/0.006822, allocations: 10.64 kB / 300 MB, free: 8.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.006832, allocations: 4.547 kB / 300.1 MB, free: 8.746 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001149/0.006947, allocations: 59.62 kB / 300.1 MB, free: 8.746 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002664/0.007213, allocations: 185.1 kB / 300.3 MB, free: 8.598 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001259/0.007339, allocations: 76.89 kB / 300.4 MB, free: 8.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.195e-05/0.007431, allocations: 63.72 kB / 300.4 MB, free: 8.562 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.897e-06/0.00744, allocations: 3.438 kB / 300.4 MB, free: 8.562 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006037/0.008044, allocations: 0.536 MB / 301 MB, free: 8.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.964e-06/0.008046, allocations: 0 / 301 MB, free: 8.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0004188/0.008465, allocations: 388.1 kB / 301.3 MB, free: 8.359 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.008501, allocations: 58.53 kB / 301.4 MB, free: 8.297 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.007e-05/0.008581, allocations: 127.3 kB / 301.5 MB, free: 8.184 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.098e-05/0.008612, allocations: 45 kB / 301.6 MB, free: 8.145 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.499e-05/0.008647, allocations: 94.67 kB / 301.7 MB, free: 8.055 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.382e-05/0.008691, allocations: 70.64 kB / 301.7 MB, free: 8.004 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.326e-05/0.008754, allocations: 61.16 kB / 301.8 MB, free: 7.965 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.774e-05/0.008802, allocations: 328.2 kB / 302.1 MB, free: 7.645 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.103e-05/0.008853, allocations: 32.3 kB / 302.1 MB, free: 7.641 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.978e-05/0.008952, allocations: 177.5 kB / 302.3 MB, free: 7.477 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.009127, allocations: 155.9 kB / 302.5 MB, free: 7.402 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.00913, allocations: 0 / 302.5 MB, free: 7.402 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002121/0.009342, allocations: 156.6 kB / 302.6 MB, free: 7.355 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.009358, allocations: 6.188 kB / 302.6 MB, free: 7.355 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.009366, allocations: 8.531 kB / 302.6 MB, free: 7.348 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.00938, allocations: 2.844 kB / 302.6 MB, free: 7.348 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.384e-05/0.009454, allocations: 28.45 kB / 302.7 MB, free: 7.336 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.009459, allocations: 2.219 kB / 302.7 MB, free: 7.336 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.009583, allocations: 30.48 kB / 302.7 MB, free: 7.332 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.009597, allocations: 9.344 kB / 302.7 MB, free: 7.328 MB / 266.7 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.000165/0.009762, allocations: 154.7 kB / 302.9 MB, free: 7.191 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.024e-05/0.009843, allocations: 60.44 kB / 302.9 MB, free: 7.184 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.919e-05/0.009892, allocations: 33.14 kB / 303 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.009898, allocations: 8.625 kB / 303 MB, free: 7.152 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.009905, allocations: 0.7031 kB / 303 MB, free: 7.152 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.009912, allocations: 4.828 kB / 303 MB, free: 7.148 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001462/0.01006, allocations: 124.1 kB / 303.1 MB, free: 7.047 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.01006, allocations: 0 / 303.1 MB, free: 7.047 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.825e-05/0.01008, allocations: 13.23 kB / 303.1 MB, free: 7.039 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.01008, allocations: 1.406 kB / 303.1 MB, free: 7.039 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.0101, allocations: 20.48 kB / 303.1 MB, free: 7.023 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.01011, allocations: 1.031 kB / 303.1 MB, free: 7.023 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.01011, allocations: 7.938 kB / 303.1 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002999/0.01041, allocations: 322.9 kB / 303.4 MB, free: 6.883 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.27e-05/0.0105, allocations: 24.05 kB / 303.5 MB, free: 6.871 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.835e-05/0.01056, allocations: 26.33 kB / 303.5 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.01066, allocations: 38.39 kB / 303.5 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.01079, allocations: 85.42 kB / 303.6 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.873e-05/0.01082, allocations: 32.94 kB / 303.7 MB, free: 6.754 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.514e-05/0.01084, allocations: 22.66 kB / 303.7 MB, free: 6.738 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01084, allocations: 0 / 303.7 MB, free: 6.738 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002212/0.01107, allocations: 82.84 kB / 303.8 MB, free: 6.719 MB / 266.7 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.0001674/0.01123, allocations: 116.8 kB / 303.9 MB, free: 6.617 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003152/0.01155, allocations: 195.3 kB / 304.1 MB, free: 6.578 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.403e-06/0.01155, allocations: 0 / 304.1 MB, free: 6.578 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001755/0.01173, allocations: 160.5 kB / 304.2 MB, free: 6.535 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001953/0.01193, allocations: 54.52 kB / 304.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005916/0.01252, allocations: 395.3 kB / 304.7 MB, free: 6.242 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.849e-05/0.01256, allocations: 76.41 kB / 304.7 MB, free: 6.164 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.722e-05/0.01264, allocations: 35.36 kB / 304.8 MB, free: 6.145 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001578/0.0128, allocations: 106.2 kB / 304.9 MB, free: 6.082 MB / 266.7 MB Notification: Performance of SimCode: time 1.483e-06/0.0128, allocations: 0 / 304.9 MB, free: 6.082 MB / 266.7 MB Notification: Performance of Templates: time 0.005974/0.01878, allocations: 4.116 MB / 309 MB, free: 2.426 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9989266372285783]