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.001324/0.001324, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001494/0.001494, allocations: 181 kB / 23.36 MB, free: 1.133 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 0.967/0.967, 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.05202/0.05202, allocations: 13.12 MB / 273.4 MB, free: 216 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.363e-06/1.363e-06, allocations: 0 / 296.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.241e-05/1.378e-05, allocations: 2.312 kB / 296.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001994/0.002008, allocations: 1.529 MB / 297.7 MB, free: 9.809 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008769/0.002885, allocations: 0.518 MB / 298.2 MB, free: 9.477 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.397e-05/0.002939, allocations: 1.188 kB / 298.3 MB, free: 9.477 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.324e-05/0.002962, allocations: 8.625 kB / 298.3 MB, free: 9.469 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.003063, allocations: 11.77 kB / 298.3 MB, free: 9.461 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002163/0.00328, allocations: 84.89 kB / 298.4 MB, free: 9.422 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001869/0.003466, allocations: 184.3 kB / 298.5 MB, free: 9.367 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.552e-05/0.003502, allocations: 4.141 kB / 298.5 MB, free: 9.367 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001539/0.003656, allocations: 132 kB / 298.7 MB, free: 9.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.003768, allocations: 75.12 kB / 298.7 MB, free: 9.297 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.207e-05/0.0038, allocations: 14 kB / 298.8 MB, free: 9.297 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.141e-05/0.003822, allocations: 12 kB / 298.8 MB, free: 9.297 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.875e-05/0.00387, allocations: 57.84 kB / 298.8 MB, free: 9.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.084e-05/0.003941, allocations: 71.94 kB / 298.9 MB, free: 9.238 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001629/0.004104, allocations: 169.9 kB / 299.1 MB, free: 9.168 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.004107, allocations: 1.156 kB / 299.1 MB, free: 9.168 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.004107, allocations: 0 / 299.1 MB, free: 9.168 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.004111, allocations: 0 / 299.1 MB, free: 9.168 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.0005866/0.004698, allocations: 443.4 kB / 299.5 MB, free: 8.895 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.00473, allocations: 9 kB / 299.5 MB, free: 8.895 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.004839, allocations: 47.12 kB / 299.5 MB, free: 8.895 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.59e-05/0.004915, allocations: 131.1 kB / 299.7 MB, free: 8.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.004935, allocations: 11.83 kB / 299.7 MB, free: 8.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.479e-05/0.00499, allocations: 24.36 kB / 299.7 MB, free: 8.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004255/0.005415, allocations: 422.1 kB / 300.1 MB, free: 8.637 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.005425, allocations: 192 / 300.1 MB, free: 8.637 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.607e-05/0.005461, allocations: 10.08 kB / 300.1 MB, free: 8.637 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.005468, allocations: 9.062 kB / 300.1 MB, free: 8.633 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001058/0.005574, allocations: 60.38 kB / 300.2 MB, free: 8.629 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002098/0.005784, allocations: 187.8 kB / 300.4 MB, free: 8.48 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/0.005916, allocations: 73.36 kB / 300.5 MB, free: 8.457 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.006022, allocations: 66.34 kB / 300.5 MB, free: 8.445 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.544e-06/0.006029, allocations: 3.031 kB / 300.5 MB, free: 8.445 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006137/0.006643, allocations: 0.5275 MB / 301.1 MB, free: 8.301 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.643e-06/0.006644, allocations: 0 / 301.1 MB, free: 8.301 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0004195/0.007064, allocations: 389 kB / 301.4 MB, free: 8.25 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.704e-05/0.007091, allocations: 55.53 kB / 301.5 MB, free: 8.188 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.366e-05/0.007155, allocations: 130.7 kB / 301.6 MB, free: 8.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.007185, allocations: 47.72 kB / 301.7 MB, free: 8.031 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.336e-05/0.007209, allocations: 95.44 kB / 301.8 MB, free: 7.938 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.311e-05/0.007252, allocations: 76.94 kB / 301.8 MB, free: 7.883 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.981e-05/0.007322, allocations: 57.16 kB / 301.9 MB, free: 7.848 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.5e-05/0.007357, allocations: 328 kB / 302.2 MB, free: 7.527 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.202e-05/0.007409, allocations: 31.83 kB / 302.2 MB, free: 7.523 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.129e-05/0.0075, allocations: 182.8 kB / 302.4 MB, free: 7.355 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.007659, allocations: 152.1 kB / 302.6 MB, free: 7.285 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.007661, allocations: 0 / 302.6 MB, free: 7.285 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002031/0.007864, allocations: 160 kB / 302.7 MB, free: 7.234 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.007877, allocations: 6.625 kB / 302.7 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.007884, allocations: 5.438 kB / 302.7 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.007899, allocations: 3.812 kB / 302.7 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-05/0.007978, allocations: 26.44 kB / 302.8 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.007983, allocations: 4.875 kB / 302.8 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001227/0.008106, allocations: 29.75 kB / 302.8 MB, free: 7.219 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.008122, allocations: 9.781 kB / 302.8 MB, free: 7.215 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.0001302/0.008252, allocations: 157.8 kB / 303 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.671e-05/0.008319, allocations: 60.42 kB / 303 MB, free: 7.062 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.148e-05/0.00836, allocations: 36.38 kB / 303.1 MB, free: 7.031 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.008364, allocations: 2.438 kB / 303.1 MB, free: 7.031 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.008368, allocations: 1.094 kB / 303.1 MB, free: 7.031 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.008373, allocations: 4.031 kB / 303.1 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001198/0.008493, allocations: 123.1 kB / 303.2 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.008494, allocations: 4 kB / 303.2 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.725e-05/0.008521, allocations: 15.48 kB / 303.2 MB, free: 6.914 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.008524, allocations: 1.281 kB / 303.2 MB, free: 6.914 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.00855, allocations: 19.67 kB / 303.2 MB, free: 6.898 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.008551, allocations: 1.375 kB / 303.2 MB, free: 6.898 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.008553, allocations: 5.281 kB / 303.2 MB, free: 6.895 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003025/0.008855, allocations: 325.1 kB / 303.5 MB, free: 6.758 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.84e-05/0.008943, allocations: 29.17 kB / 303.6 MB, free: 6.742 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.881e-05/0.009002, allocations: 26.2 kB / 303.6 MB, free: 6.727 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.009116, allocations: 38.77 kB / 303.6 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.009258, allocations: 82.44 kB / 303.7 MB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.665e-05/0.009294, allocations: 36.8 kB / 303.8 MB, free: 6.621 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.104e-05/0.009315, allocations: 18.66 kB / 303.8 MB, free: 6.609 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009315, allocations: 0 / 303.8 MB, free: 6.609 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002309/0.009546, allocations: 77.44 kB / 303.8 MB, free: 6.594 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 9.836e-05/0.009645, allocations: 113.6 kB / 304 MB, free: 6.496 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002588/0.009903, allocations: 199.9 kB / 304.2 MB, free: 6.453 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.009907, allocations: 256 / 304.2 MB, free: 6.453 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001494/0.01006, allocations: 162.5 kB / 304.3 MB, free: 6.406 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001633/0.01022, allocations: 49.73 kB / 304.4 MB, free: 6.375 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005625/0.01078, allocations: 396.2 kB / 304.7 MB, free: 6.117 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.19e-05/0.01081, allocations: 71.56 kB / 304.8 MB, free: 6.043 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.707e-05/0.01091, allocations: 32.75 kB / 304.8 MB, free: 6.027 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001792/0.01109, allocations: 104.9 kB / 304.9 MB, free: 5.965 MB / 266.7 MB Notification: Performance of SimCode: time 7.41e-07/0.01109, allocations: 0 / 304.9 MB, free: 5.965 MB / 266.7 MB Notification: Performance of Templates: time 0.005827/0.01692, allocations: 4.129 MB / 309.1 MB, free: 2.293 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 -s gbode -gbm=radauIIA3 -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.6801250241696835]