Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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.0009492/0.0009492, allocations: 76.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.0009362/0.0009362, allocations: 176.9 kB / 23.36 MB, free: 1.125 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9025/0.9025, allocations: 158.6 MB / 185.2 MB, free: 2.746 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.04009/0.04009, allocations: 10.66 MB / 248.2 MB, free: 4.348 MB / 234.7 MB " [Timeout remaining time 180] 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.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_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_PowerGrids.Electrical.Test.TestTapChangerLogicMax") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 270.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.075e-05/2.243e-05, allocations: 6.25 kB / 270.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001987/0.00201, allocations: 1.461 MB / 271.6 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009053/0.002915, allocations: 0.5269 MB / 272.2 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.022e-05/0.002965, allocations: 0 / 272.2 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.608e-05/0.002991, allocations: 11.92 kB / 272.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.003097, allocations: 11.86 kB / 272.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002221/0.003319, allocations: 83.75 kB / 272.3 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001739/0.003493, allocations: 183.6 kB / 272.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.158e-05/0.003535, allocations: 4 kB / 272.4 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.003701, allocations: 135.7 kB / 272.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.003819, allocations: 75.77 kB / 272.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.784e-05/0.003857, allocations: 12 kB / 272.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.281e-05/0.003879, allocations: 16 kB / 272.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.775e-05/0.003937, allocations: 55.84 kB / 272.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.569e-05/0.004013, allocations: 71.83 kB / 272.8 MB, free: 11.72 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001781/0.004191, allocations: 163.5 kB / 273 MB, free: 11.56 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.004194, allocations: 4 kB / 273 MB, free: 11.56 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.004194, allocations: 0 / 273 MB, free: 11.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.577e-06/0.004198, allocations: 4 kB / 273 MB, free: 11.55 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.0005973/0.004795, allocations: 444.3 kB / 273.4 MB, free: 11.1 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.004831, allocations: 8.031 kB / 273.4 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.951e-05/0.00492, allocations: 48.88 kB / 273.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.476e-05/0.005015, allocations: 109.8 kB / 273.6 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.005033, allocations: 20.3 kB / 273.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.771e-05/0.005081, allocations: 28.34 kB / 273.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000363/0.005444, allocations: 421 kB / 274 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.005451, allocations: 192 / 274 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.965e-05/0.005481, allocations: 12.34 kB / 274 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.005487, allocations: 7.938 kB / 274 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.958e-05/0.005567, allocations: 55.97 kB / 274.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000231/0.005798, allocations: 192.2 kB / 274.3 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001066/0.005904, allocations: 70.55 kB / 274.4 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.05e-05/0.005985, allocations: 60.83 kB / 274.4 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.026e-05/0.005995, allocations: 4 kB / 274.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004908/0.006486, allocations: 0.5411 MB / 275 MB, free: 9.445 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.773e-06/0.006488, allocations: 0 / 275 MB, free: 9.445 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0003969/0.006884, allocations: 378.1 kB / 275.3 MB, free: 9.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.006936, allocations: 63.39 kB / 275.4 MB, free: 8.996 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.056e-05/0.007026, allocations: 122.7 kB / 275.5 MB, free: 8.863 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.634e-05/0.007063, allocations: 45.69 kB / 275.6 MB, free: 8.812 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.137e-05/0.007104, allocations: 96.7 kB / 275.6 MB, free: 8.715 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.678e-05/0.007161, allocations: 75.48 kB / 275.7 MB, free: 8.641 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.911e-05/0.00723, allocations: 53.69 kB / 275.8 MB, free: 8.582 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.007341, allocations: 342.8 kB / 276.1 MB, free: 8.238 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.494e-05/0.007386, allocations: 28.33 kB / 276.1 MB, free: 8.207 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.007503, allocations: 184.4 kB / 276.3 MB, free: 7.984 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001496/0.007653, allocations: 149.3 kB / 276.5 MB, free: 7.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.007656, allocations: 0 / 276.5 MB, free: 7.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001817/0.007837, allocations: 153.6 kB / 276.6 MB, free: 7.664 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.007853, allocations: 4 kB / 276.6 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.007864, allocations: 12.06 kB / 276.6 MB, free: 7.648 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.007879, allocations: 0 / 276.6 MB, free: 7.648 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.088e-05/0.00795, allocations: 27.86 kB / 276.7 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.007958, allocations: 7.984 kB / 276.7 MB, free: 7.613 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.008068, allocations: 35.92 kB / 276.7 MB, free: 7.578 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.008087, allocations: 8 kB / 276.7 MB, free: 7.57 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.0001863/0.008273, allocations: 158.1 kB / 276.9 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.519e-05/0.008329, allocations: 55.94 kB / 276.9 MB, free: 7.352 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.154e-05/0.00838, allocations: 37.55 kB / 277 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.008384, allocations: 4 kB / 277 MB, free: 7.309 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.008388, allocations: 0 / 277 MB, free: 7.309 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.008393, allocations: 0 / 277 MB, free: 7.309 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.008529, allocations: 117.8 kB / 277.1 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.008531, allocations: 0 / 277.1 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.573e-05/0.008546, allocations: 11.94 kB / 277.1 MB, free: 7.164 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.329e-06/0.008551, allocations: 8.031 kB / 277.1 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.008575, allocations: 27.94 kB / 277.1 MB, free: 7.129 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.008577, allocations: 0 / 277.1 MB, free: 7.129 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.008579, allocations: 3.938 kB / 277.1 MB, free: 7.125 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000256/0.008835, allocations: 321.2 kB / 277.4 MB, free: 6.793 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.17e-05/0.008917, allocations: 35.81 kB / 277.5 MB, free: 6.758 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.358e-05/0.008971, allocations: 19.97 kB / 277.5 MB, free: 6.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.364e-05/0.009064, allocations: 35.95 kB / 277.5 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.009193, allocations: 87.73 kB / 277.6 MB, free: 6.617 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-05/0.009222, allocations: 35.95 kB / 277.6 MB, free: 6.582 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.101e-05/0.009243, allocations: 24.83 kB / 277.7 MB, free: 6.555 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009243, allocations: 4 kB / 277.7 MB, free: 6.551 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001743/0.009417, allocations: 75.98 kB / 277.7 MB, free: 6.477 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.0001111/0.009528, allocations: 114.3 kB / 277.9 MB, free: 6.355 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002281/0.009756, allocations: 192.7 kB / 278 MB, free: 6.164 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.009762, allocations: 8 kB / 278.1 MB, free: 6.156 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.009893, allocations: 148.7 kB / 278.2 MB, free: 6.008 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001612/0.01005, allocations: 51.86 kB / 278.2 MB, free: 5.957 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005515/0.01061, allocations: 400.9 kB / 278.6 MB, free: 5.543 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.849e-05/0.01065, allocations: 73.31 kB / 278.7 MB, free: 5.449 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.281e-05/0.01073, allocations: 25.95 kB / 278.7 MB, free: 5.426 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/0.01089, allocations: 119.2 kB / 278.9 MB, free: 5.309 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01089, allocations: 0 / 278.9 MB, free: 5.309 MB / 266.7 MB Notification: Performance of Templates: time 0.005809/0.0167, allocations: 4.11 MB / 283 MB, free: 1.18 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile [Timeout 660] (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerGrids_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.753544436302036]