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.001165/0.001165, allocations: 76.5 kB / 19.93 MB, free: 4.633 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.0008861/0.0008861, allocations: 174.3 kB / 23.21 MB, free: 1.355 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.8006/0.8006, allocations: 158.6 MB / 185 MB, free: 3.055 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.04317/0.04317, allocations: 10.65 MB / 247.9 MB, free: 4.719 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 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_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.392e-06/1.392e-06, allocations: 0 / 371 MB, free: 4.234 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.26e-05/2.399e-05, allocations: 2.281 kB / 371 MB, free: 4.23 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001677/0.001701, allocations: 1.418 MB / 372.4 MB, free: 2.801 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006838/0.002385, allocations: 0.5074 MB / 372.9 MB, free: 2.285 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.485e-05/0.00242, allocations: 4 kB / 372.9 MB, free: 2.281 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.879e-05/0.002439, allocations: 7.922 kB / 373 MB, free: 2.273 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.881e-05/0.002507, allocations: 11.88 kB / 373 MB, free: 2.262 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001693/0.002677, allocations: 83.8 kB / 373 MB, free: 2.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000133/0.00281, allocations: 195.5 kB / 373.2 MB, free: 1.988 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.728e-05/0.002847, allocations: 0 / 373.2 MB, free: 1.988 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.002974, allocations: 127.8 kB / 373.4 MB, free: 1.863 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.472e-05/0.003058, allocations: 75.78 kB / 373.4 MB, free: 1.789 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.279e-05/0.003091, allocations: 12 kB / 373.4 MB, free: 1.777 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.835e-05/0.00311, allocations: 16 kB / 373.5 MB, free: 1.762 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.859e-05/0.003148, allocations: 55.84 kB / 373.5 MB, free: 1.707 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.549e-05/0.003214, allocations: 71.83 kB / 373.6 MB, free: 1.637 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.003377, allocations: 155.6 kB / 373.7 MB, free: 1.484 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.003379, allocations: 0 / 373.7 MB, free: 1.484 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.00338, allocations: 8 kB / 373.7 MB, free: 1.477 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.596e-06/0.003383, allocations: 0 / 373.7 MB, free: 1.477 MB / 298.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.0005868/0.00397, allocations: 489.7 kB / 374.2 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.004002, allocations: 8.031 kB / 374.2 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.749e-05/0.004069, allocations: 24.89 kB / 374.3 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.42e-05/0.004153, allocations: 121.6 kB / 374.4 MB, free: 0.793 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.004167, allocations: 12.36 kB / 374.4 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.826e-05/0.004206, allocations: 24.34 kB / 374.4 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004416/0.004647, allocations: 433 kB / 374.8 MB, free: 324 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.004654, allocations: 192 / 374.8 MB, free: 324 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.756e-05/0.004682, allocations: 8.359 kB / 374.8 MB, free: 316 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.004688, allocations: 7.922 kB / 374.9 MB, free: 308 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.004818, allocations: 67.94 kB / 374.9 MB, free: 240 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002651/0.005083, allocations: 280.4 kB / 375.2 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001501/0.005233, allocations: 78.52 kB / 375.3 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.005347, allocations: 68.81 kB / 375.3 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.005357, allocations: 0 / 375.3 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00049/0.005847, allocations: 0.5802 MB / 375.9 MB, free: 15.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 1.303e-06/0.005848, allocations: 4 kB / 375.9 MB, free: 15.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=30): time 0.0007616/0.00661, allocations: 0.6433 MB / 376.6 MB, free: 14.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.006643, allocations: 55.41 kB / 376.6 MB, free: 14.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.247e-05/0.006716, allocations: 129.8 kB / 376.7 MB, free: 14.31 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/0.006743, allocations: 45.69 kB / 376.8 MB, free: 14.26 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.972e-05/0.006782, allocations: 96.75 kB / 376.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.538e-05/0.006828, allocations: 75.55 kB / 377 MB, free: 14.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.845e-05/0.006886, allocations: 57.7 kB / 377 MB, free: 14.03 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.037e-05/0.006957, allocations: 326.8 kB / 377.3 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.461e-05/0.007051, allocations: 84.3 kB / 377.4 MB, free: 13.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.007195, allocations: 240.3 kB / 377.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002284/0.007423, allocations: 229.6 kB / 377.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.007426, allocations: 0 / 377.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002324/0.007658, allocations: 249.2 kB / 378.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.00767, allocations: 8 kB / 378.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.007676, allocations: 7.922 kB / 378.1 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.007687, allocations: 8.125 kB / 378.1 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.635e-05/0.007743, allocations: 15.88 kB / 378.2 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.007749, allocations: 4 kB / 378.2 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.007862, allocations: 47.84 kB / 378.2 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.007874, allocations: 8 kB / 378.2 MB, free: 12.75 MB / 314.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.0001406/0.008015, allocations: 174.7 kB / 378.4 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.247e-05/0.008047, allocations: 27.84 kB / 378.4 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.909e-05/0.008087, allocations: 33.61 kB / 378.4 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.00809, allocations: 4 kB / 378.5 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.008096, allocations: 4 kB / 378.5 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.008099, allocations: 0 / 378.5 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001229/0.008222, allocations: 193.2 kB / 378.6 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.008223, allocations: 0 / 378.6 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.175e-05/0.008235, allocations: 7.984 kB / 378.7 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.008237, allocations: 0 / 378.7 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.00826, allocations: 27.89 kB / 378.7 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.008261, allocations: 4 kB / 378.7 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.008262, allocations: 3.938 kB / 378.7 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004497/0.008712, allocations: 0.5518 MB / 379.2 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.662e-05/0.008809, allocations: 39.83 kB / 379.3 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.837e-05/0.008857, allocations: 31.89 kB / 379.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.008961, allocations: 39.94 kB / 379.3 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.009087, allocations: 83.81 kB / 379.4 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.013e-05/0.009117, allocations: 43.95 kB / 379.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.635e-05/0.009153, allocations: 95.27 kB / 379.6 MB, free: 11.35 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009153, allocations: 4 kB / 379.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001748/0.009328, allocations: 75.98 kB / 379.6 MB, free: 11.27 MB / 314.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.0001035/0.009432, allocations: 133.5 kB / 379.8 MB, free: 11.13 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005405/0.009972, allocations: 271.8 kB / 380 MB, free: 10.86 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.009973, allocations: 0 / 380 MB, free: 10.86 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001658/0.01014, allocations: 171.8 kB / 380.2 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001871/0.01033, allocations: 39.89 kB / 380.2 MB, free: 10.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005906/0.01092, allocations: 460 kB / 380.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.628e-05/0.01097, allocations: 103.1 kB / 380.8 MB, free: 10.05 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.74e-05/0.01106, allocations: 52.39 kB / 380.8 MB, free: 9.996 MB / 314.7 MB Notification: Performance of SimCode: time 7.92e-07/0.01106, allocations: 0 / 380.8 MB, free: 9.996 MB / 314.7 MB Notification: Performance of Templates: time 0.002591/0.01365, allocations: 2.616 MB / 383.5 MB, free: 7.387 MB / 314.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] Reference file matches [Calling sys.exit(0), Time elapsed: 3.9930063216015697]