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.001798/0.001798, allocations: 106.2 kB / 19.69 MB, free: 2.277 MB / 14.72 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.002155/0.002155, allocations: 218 kB / 23.01 MB, free: 4.605 MB / 14.72 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.369/1.369, allocations: 207.6 MB / 233.8 MB, free: 10.02 MB / 190.1 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.07137/0.07137, allocations: 14.4 MB / 300.4 MB, free: 7.539 MB / 238.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002254/0.002254, allocations: 70.72 kB / 423.5 MB, free: 37.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0822/0.08445, allocations: 52.9 MB / 476.4 MB, free: 184 kB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002747/0.0872, allocations: 1.449 MB / 477.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.08826, allocations: 0.5385 MB / 478.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.975e-05/0.08832, allocations: 4 kB / 478.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.62e-05/0.08835, allocations: 7.938 kB / 478.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.106e-05/0.08843, allocations: 15.86 kB / 478.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.08866, allocations: 79.83 kB / 478.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000238/0.08889, allocations: 187.6 kB / 478.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.65e-05/0.08894, allocations: 4 kB / 478.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.08907, allocations: 91.86 kB / 478.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.08925, allocations: 99.66 kB / 478.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.905e-05/0.08929, allocations: 12 kB / 478.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.235e-05/0.08932, allocations: 12 kB / 478.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.313e-05/0.08939, allocations: 51.86 kB / 479 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.0895, allocations: 83.8 kB / 479 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001849/0.08969, allocations: 131.6 kB / 479.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.08969, allocations: 4 kB / 479.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.08969, allocations: 0 / 479.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.08971, allocations: 0 / 479.2 MB, free: 13.41 MB / 350.1 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.001023/0.09073, allocations: 489.7 kB / 479.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.09077, allocations: 12.03 kB / 479.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.09087, allocations: 24.88 kB / 479.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.09102, allocations: 126.4 kB / 479.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/0.09105, allocations: 12.36 kB / 479.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.223e-05/0.09112, allocations: 32.3 kB / 479.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006384/0.09176, allocations: 381.4 kB / 480.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.09177, allocations: 0 / 480.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.404e-05/0.09182, allocations: 11.97 kB / 480.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.09183, allocations: 4 kB / 480.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001965/0.09203, allocations: 67.88 kB / 480.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004757/0.09251, allocations: 339.7 kB / 480.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/0.09272, allocations: 82.52 kB / 480.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.0929, allocations: 68.8 kB / 480.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.09292, allocations: 4 kB / 480.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008734/0.0938, allocations: 0.5222 MB / 481.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.313e-06/0.0938, allocations: 0 / 481.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001084/0.09488, allocations: 0.6504 MB / 482 MB, free: 10.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.81e-05/0.09494, allocations: 63.39 kB / 482 MB, free: 10.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.09506, allocations: 125.8 kB / 482.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.105e-05/0.09511, allocations: 45.69 kB / 482.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.809e-05/0.09518, allocations: 100.8 kB / 482.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.469e-05/0.09525, allocations: 75.5 kB / 482.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.399e-05/0.09535, allocations: 53.7 kB / 482.4 MB, free: 9.988 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.0955, allocations: 330.8 kB / 482.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.09566, allocations: 88.3 kB / 482.8 MB, free: 9.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002218/0.09589, allocations: 155.3 kB / 483 MB, free: 9.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003686/0.09625, allocations: 237.4 kB / 483.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.09626, allocations: 0 / 483.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003882/0.09665, allocations: 249.5 kB / 483.5 MB, free: 8.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.09666, allocations: 4 kB / 483.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.09667, allocations: 7.922 kB / 483.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.09669, allocations: 4 kB / 483.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.209e-05/0.09678, allocations: 15.92 kB / 483.5 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.0968, allocations: 7.938 kB / 483.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000239/0.09703, allocations: 43.86 kB / 483.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.09706, allocations: 8 kB / 483.6 MB, free: 8.801 MB / 350.1 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.000277/0.09733, allocations: 169.2 kB / 483.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.746e-05/0.09739, allocations: 27.89 kB / 483.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.357e-05/0.09747, allocations: 29.62 kB / 483.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.09748, allocations: 4 kB / 483.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.09748, allocations: 0 / 483.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.09749, allocations: 3.984 kB / 483.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002768/0.09777, allocations: 252.5 kB / 484 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.09777, allocations: 4 kB / 484 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.873e-05/0.0978, allocations: 7.938 kB / 484 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.0978, allocations: 0 / 484 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.951e-05/0.09785, allocations: 31.95 kB / 484.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.09785, allocations: 0 / 484.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.09785, allocations: 0 / 484.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007969/0.09865, allocations: 0.5632 MB / 484.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001394/0.09879, allocations: 43.83 kB / 484.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.533e-05/0.09887, allocations: 19.97 kB / 484.7 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002266/0.09909, allocations: 47.94 kB / 484.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000208/0.0993, allocations: 87.8 kB / 484.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.487e-05/0.09936, allocations: 43.95 kB / 484.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.626e-05/0.09943, allocations: 95.27 kB / 485 MB, free: 7.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.09943, allocations: 0 / 485 MB, free: 7.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002919/0.09972, allocations: 79.98 kB / 485 MB, free: 7.234 MB / 350.1 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.0001626/0.09989, allocations: 133.5 kB / 485.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005098/0.1004, allocations: 271.8 kB / 485.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1004, allocations: 0 / 485.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002934/0.1007, allocations: 165.1 kB / 485.6 MB, free: 6.672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.101, allocations: 55.81 kB / 485.7 MB, free: 6.617 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.1021, allocations: 472.9 kB / 486.1 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000363/0.1025, allocations: 0.7177 MB / 486.8 MB, free: 5.379 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.1026, allocations: 43.39 kB / 486.9 MB, free: 5.336 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1026, allocations: 3.938 kB / 486.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of Templates: time 0.004821/0.1074, allocations: 2.612 MB / 489.5 MB, free: 2.727 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/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: 7.199875504011288]