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.001942/0.001942, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.002573/0.002573, allocations: 157.6 kB / 22.75 MB, free: 1.684 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 1.411/1.411, allocations: 158.6 MB / 184.6 MB, free: 2.883 MB / 170.7 MB " [Timeout remaining time 178] 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.06874/0.06874, allocations: 10.64 MB / 247.5 MB, free: 4.523 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 2.174e-06/2.174e-06, allocations: 0 / 318 MB, free: 40.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.162e-05/3.379e-05, allocations: 3.953 kB / 318 MB, free: 40.68 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002391/0.002425, allocations: 1.43 MB / 319.4 MB, free: 39.25 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008908/0.003316, allocations: 0.5153 MB / 319.9 MB, free: 38.73 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.047e-05/0.003366, allocations: 0 / 319.9 MB, free: 38.73 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.33e-05/0.003389, allocations: 3.938 kB / 319.9 MB, free: 38.72 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.003509, allocations: 19.86 kB / 320 MB, free: 38.7 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.003721, allocations: 75.81 kB / 320 MB, free: 38.63 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000149/0.00387, allocations: 187.6 kB / 320.2 MB, free: 38.45 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.223e-05/0.003922, allocations: 4 kB / 320.2 MB, free: 38.44 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001506/0.004073, allocations: 131.8 kB / 320.3 MB, free: 38.31 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.004187, allocations: 71.78 kB / 320.4 MB, free: 38.24 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.298e-05/0.00423, allocations: 12 kB / 320.4 MB, free: 38.23 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.888e-05/0.004259, allocations: 16 kB / 320.4 MB, free: 38.21 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.3e-05/0.004312, allocations: 59.83 kB / 320.5 MB, free: 38.16 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.25e-05/0.004404, allocations: 71.84 kB / 320.6 MB, free: 38.09 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.004578, allocations: 163.5 kB / 320.7 MB, free: 37.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.004581, allocations: 0 / 320.7 MB, free: 37.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.004582, allocations: 0 / 320.7 MB, free: 37.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.004587, allocations: 3.938 kB / 320.7 MB, free: 37.92 MB / 282.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.0009221/0.00551, allocations: 491.5 kB / 321.2 MB, free: 37.41 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.005551, allocations: 12.03 kB / 321.2 MB, free: 37.4 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001538/0.005705, allocations: 44.86 kB / 321.3 MB, free: 37.36 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.005813, allocations: 121.7 kB / 321.4 MB, free: 37.21 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.005838, allocations: 16.36 kB / 321.4 MB, free: 37.2 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.943e-05/0.005897, allocations: 20.36 kB / 321.4 MB, free: 37.18 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005173/0.006415, allocations: 425 kB / 321.8 MB, free: 36.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.006426, allocations: 192 / 321.8 MB, free: 36.75 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.118e-05/0.006477, allocations: 12.34 kB / 321.9 MB, free: 36.73 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.006484, allocations: 3.938 kB / 321.9 MB, free: 36.73 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.006658, allocations: 69.25 kB / 321.9 MB, free: 36.66 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003394/0.006997, allocations: 276.5 kB / 322.2 MB, free: 36.36 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/0.007195, allocations: 84.06 kB / 322.3 MB, free: 36.27 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.007424, allocations: 72.8 kB / 322.3 MB, free: 36.2 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.676e-05/0.00744, allocations: 0 / 322.3 MB, free: 36.2 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007686/0.008209, allocations: 0.5807 MB / 322.9 MB, free: 35.59 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 1.302e-06/0.00821, allocations: 0 / 322.9 MB, free: 35.59 MB / 282.7 MB Notification: Performance of matching and sorting (n=30): time 0.0008959/0.009106, allocations: 0.6689 MB / 323.6 MB, free: 34.92 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.893e-05/0.009135, allocations: 55.41 kB / 323.7 MB, free: 34.86 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.26e-05/0.009218, allocations: 131.1 kB / 323.8 MB, free: 34.72 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.821e-05/0.009256, allocations: 45.69 kB / 323.8 MB, free: 34.67 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.252e-05/0.009298, allocations: 92.75 kB / 323.9 MB, free: 34.57 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.006e-05/0.009349, allocations: 75.55 kB / 324 MB, free: 34.5 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.589e-05/0.009424, allocations: 53.7 kB / 324 MB, free: 34.44 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.427e-05/0.009489, allocations: 326.8 kB / 324.4 MB, free: 34.11 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.009607, allocations: 84.3 kB / 324.4 MB, free: 34.03 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.009781, allocations: 247.3 kB / 324.7 MB, free: 33.75 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000302/0.01008, allocations: 234.9 kB / 324.9 MB, free: 33.5 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.01009, allocations: 4 kB / 324.9 MB, free: 33.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003375/0.01042, allocations: 261.2 kB / 325.2 MB, free: 33.23 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.01044, allocations: 8 kB / 325.2 MB, free: 33.23 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.01045, allocations: 3.984 kB / 325.2 MB, free: 33.22 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.734e-05/0.01047, allocations: 4 kB / 325.2 MB, free: 33.22 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.573e-05/0.01057, allocations: 17.56 kB / 325.2 MB, free: 33.2 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.01058, allocations: 4 kB / 325.2 MB, free: 33.2 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002143/0.01079, allocations: 39.89 kB / 325.2 MB, free: 33.16 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.01082, allocations: 16.12 kB / 325.3 MB, free: 33.14 MB / 282.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.0001992/0.01102, allocations: 159 kB / 325.4 MB, free: 32.98 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.719e-05/0.0111, allocations: 59.86 kB / 325.5 MB, free: 32.93 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.76e-05/0.01119, allocations: 29.62 kB / 325.5 MB, free: 32.9 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.0112, allocations: 4 kB / 325.5 MB, free: 32.9 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.01121, allocations: 0 / 325.5 MB, free: 32.9 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.01122, allocations: 7.984 kB / 325.5 MB, free: 32.89 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.0114, allocations: 189.1 kB / 325.7 MB, free: 32.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.0114, allocations: 0.875 kB / 325.7 MB, free: 32.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.678e-05/0.01143, allocations: 7.984 kB / 325.7 MB, free: 32.67 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.01144, allocations: 4 kB / 325.7 MB, free: 32.66 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.953e-05/0.01147, allocations: 27.89 kB / 325.7 MB, free: 32.64 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.01148, allocations: 4 kB / 325.7 MB, free: 32.63 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.01148, allocations: 0 / 325.7 MB, free: 32.63 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006758/0.01215, allocations: 0.5829 MB / 326.3 MB, free: 32.03 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.01229, allocations: 43.83 kB / 326.4 MB, free: 31.99 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.062e-05/0.01236, allocations: 23.91 kB / 326.4 MB, free: 31.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002029/0.01256, allocations: 43.94 kB / 326.4 MB, free: 31.92 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001885/0.01275, allocations: 91.8 kB / 326.5 MB, free: 31.83 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.393e-05/0.01279, allocations: 39.95 kB / 326.6 MB, free: 31.79 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.127e-05/0.01283, allocations: 99.27 kB / 326.7 MB, free: 31.7 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01283, allocations: 3.938 kB / 326.7 MB, free: 31.69 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002825/0.01312, allocations: 71.98 kB / 326.7 MB, free: 31.62 MB / 282.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.0001408/0.01326, allocations: 129.2 kB / 326.9 MB, free: 31.49 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004124/0.01367, allocations: 279.8 kB / 327.1 MB, free: 31.21 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.01367, allocations: 0 / 327.1 MB, free: 31.21 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002295/0.0139, allocations: 171.8 kB / 327.3 MB, free: 31.05 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.01426, allocations: 56.73 kB / 327.4 MB, free: 30.99 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.01527, allocations: 424.7 kB / 327.8 MB, free: 30.55 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.893e-05/0.01536, allocations: 111.4 kB / 327.9 MB, free: 30.43 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.00011/0.01547, allocations: 29.98 kB / 327.9 MB, free: 30.4 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.01562, allocations: 48.45 kB / 328 MB, free: 30.35 MB / 282.7 MB Notification: Performance of SimCode: time 1.182e-06/0.01562, allocations: 0 / 328 MB, free: 30.35 MB / 282.7 MB Notification: Performance of Templates: time 0.007215/0.02283, allocations: 3.965 MB / 331.9 MB, free: 26.43 MB / 282.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=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerGrids_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_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:Ntap,actionSel,directAction,lockedStart,reverseAction,runningStart,stateStart,t1st,tNext,tap,tapMax,tapMin,tapStart,time Variables in the result:Ntap,actionSel,directAction,lockedStart,reverseAction,runningStart,stateStart,t1st,tNext,tap,tapMax,tapMin,tapStart,time [Calling sys.exit(0), Time elapsed: 4.855768314911984]