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.001807/0.001807, allocations: 77.23 kB / 19.76 MB, free: 2.035 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.002174/0.002174, allocations: 160.7 kB / 23.01 MB, free: 4.938 MB / 14.72 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 1.5/1.5, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.1 MB " [Timeout remaining time 178] 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.07856/0.07856, allocations: 12.54 MB / 272.3 MB, free: 4.543 MB / 254.1 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 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_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: PowerGrids requested package Modelica of version 4.0.0. Modelica 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.002206/0.002206, allocations: 71.89 kB / 405 MB, free: 14.51 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1044, allocations: 57.68 MB / 462.7 MB, free: 4.711 MB / 430.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002823/0.1072, allocations: 1.446 MB / 464.1 MB, free: 3.254 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.1082, allocations: 0.5028 MB / 464.6 MB, free: 2.746 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.903e-05/0.1082, allocations: 0 / 464.6 MB, free: 2.746 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.178e-05/0.1083, allocations: 3.938 kB / 464.6 MB, free: 2.742 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 8.079e-05/0.1084, allocations: 11.86 kB / 464.6 MB, free: 2.73 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002008/0.1086, allocations: 87.7 kB / 464.7 MB, free: 2.645 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002094/0.1088, allocations: 183.6 kB / 464.9 MB, free: 2.465 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.422e-05/0.1088, allocations: 0 / 464.9 MB, free: 2.465 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001399/0.1089, allocations: 107.8 kB / 465 MB, free: 2.359 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.1091, allocations: 79.67 kB / 465.1 MB, free: 2.281 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.021e-05/0.1091, allocations: 12 kB / 465.1 MB, free: 2.27 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.357e-05/0.1092, allocations: 16 kB / 465.1 MB, free: 2.254 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.936e-05/0.1092, allocations: 55.91 kB / 465.2 MB, free: 2.199 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.1093, allocations: 67.81 kB / 465.2 MB, free: 2.133 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001744/0.1095, allocations: 135.6 kB / 465.4 MB, free: 2 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1095, allocations: 0 / 465.4 MB, free: 2 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1095, allocations: 0 / 465.4 MB, free: 2 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.1095, allocations: 0 / 465.4 MB, free: 2 MB / 430.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.000979/0.1105, allocations: 493.7 kB / 465.8 MB, free: 1.488 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.1105, allocations: 16.02 kB / 465.9 MB, free: 1.473 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.052e-05/0.1106, allocations: 20.89 kB / 465.9 MB, free: 1.453 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001305/0.1108, allocations: 122.4 kB / 466 MB, free: 1.309 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.1108, allocations: 16.3 kB / 466 MB, free: 1.293 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.83e-05/0.1108, allocations: 28.36 kB / 466 MB, free: 1.266 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006239/0.1115, allocations: 432.8 kB / 466.5 MB, free: 0.8242 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1115, allocations: 0 / 466.5 MB, free: 0.8242 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.415e-05/0.1115, allocations: 7.984 kB / 466.5 MB, free: 0.8164 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1115, allocations: 0 / 466.5 MB, free: 0.8164 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.1117, allocations: 71.88 kB / 466.5 MB, free: 0.7461 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003661/0.1121, allocations: 288.5 kB / 466.8 MB, free: 444 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002185/0.1123, allocations: 86.45 kB / 466.9 MB, free: 348 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.1125, allocations: 64.81 kB / 467 MB, free: 280 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.1125, allocations: 0 / 467 MB, free: 280 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00084/0.1133, allocations: 0.5801 MB / 467.5 MB, free: 15.67 MB / 446.1 MB Notification: Performance of pre-optimization done (n=30): time 1.583e-06/0.1133, allocations: 4 kB / 467.5 MB, free: 15.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=30): time 0.00104/0.1144, allocations: 0.6496 MB / 468.2 MB, free: 15.01 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.983e-05/0.1144, allocations: 55.41 kB / 468.3 MB, free: 14.94 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.1145, allocations: 129.2 kB / 468.4 MB, free: 14.81 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.039e-05/0.1146, allocations: 45.69 kB / 468.4 MB, free: 14.76 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.619e-05/0.1147, allocations: 96.75 kB / 468.5 MB, free: 14.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.207e-05/0.1147, allocations: 83.48 kB / 468.6 MB, free: 14.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.703e-05/0.1148, allocations: 53.7 kB / 468.7 MB, free: 14.52 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.115, allocations: 326.8 kB / 469 MB, free: 14.19 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.1151, allocations: 84.3 kB / 469.1 MB, free: 14.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002592/0.1154, allocations: 244.4 kB / 469.3 MB, free: 13.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003627/0.1157, allocations: 228.3 kB / 469.5 MB, free: 13.58 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.538e-06/0.1158, allocations: 7.938 kB / 469.5 MB, free: 13.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003876/0.1161, allocations: 241.2 kB / 469.8 MB, free: 13.33 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.1162, allocations: 6.5 kB / 469.8 MB, free: 13.33 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1162, allocations: 4 kB / 469.8 MB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.1162, allocations: 4.125 kB / 469.8 MB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.389e-05/0.1163, allocations: 23.92 kB / 469.8 MB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.1163, allocations: 3.938 kB / 469.8 MB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000222/0.1165, allocations: 43.84 kB / 469.8 MB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.29e-05/0.1165, allocations: 8 kB / 469.9 MB, free: 13.24 MB / 446.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.0001976/0.1167, allocations: 169.6 kB / 470 MB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.323e-05/0.1168, allocations: 27.91 kB / 470 MB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.436e-05/0.1168, allocations: 33.61 kB / 470.1 MB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.1169, allocations: 8.031 kB / 470.1 MB, free: 13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1169, allocations: 0 / 470.1 MB, free: 13 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1169, allocations: 0 / 470.1 MB, free: 13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002127/0.1171, allocations: 189.1 kB / 470.3 MB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1171, allocations: 0 / 470.3 MB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.079e-05/0.1171, allocations: 11.94 kB / 470.3 MB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.1171, allocations: 4 kB / 470.3 MB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.43e-05/0.1172, allocations: 27.94 kB / 470.3 MB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.1172, allocations: 4 kB / 470.3 MB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1172, allocations: 0 / 470.3 MB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007757/0.1179, allocations: 0.5603 MB / 470.9 MB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.1181, allocations: 47.77 kB / 470.9 MB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.508e-05/0.1181, allocations: 23.95 kB / 470.9 MB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002385/0.1184, allocations: 43.95 kB / 471 MB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002018/0.1186, allocations: 83.8 kB / 471.1 MB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.802e-05/0.1186, allocations: 43.95 kB / 471.1 MB, free: 11.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.178e-05/0.1187, allocations: 95.27 kB / 471.2 MB, free: 11.83 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1187, allocations: 4 kB / 471.2 MB, free: 11.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002903/0.119, allocations: 79.98 kB / 471.3 MB, free: 11.75 MB / 446.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.0001561/0.1192, allocations: 129.2 kB / 471.4 MB, free: 11.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004951/0.1196, allocations: 279.9 kB / 471.7 MB, free: 11.33 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1196, allocations: 0 / 471.7 MB, free: 11.33 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002907/0.1199, allocations: 171.8 kB / 471.9 MB, free: 11.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.1202, allocations: 55.83 kB / 471.9 MB, free: 11.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009654/0.1212, allocations: 435.3 kB / 472.3 MB, free: 10.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.368e-05/0.1213, allocations: 107.1 kB / 472.4 MB, free: 10.53 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.1214, allocations: 29.94 kB / 472.5 MB, free: 10.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.1215, allocations: 44.47 kB / 472.5 MB, free: 10.46 MB / 446.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1215, allocations: 0 / 472.5 MB, free: 10.46 MB / 446.1 MB Notification: Performance of Templates: time 0.008081/0.1296, allocations: 3.983 MB / 476.5 MB, free: 6.523 MB / 446.1 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=480 -s ida -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerGrids_dev_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_dev_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: 4.820494640967809]