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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001867/0.001867, allocations: 108.8 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002098/0.002098, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.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.08388/0.08388, allocations: 16.94 MB / 319.6 MB, free: 9.258 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002202/0.002202, allocations: 67.89 kB / 448.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1183, allocations: 56.53 MB / 0.493 GB, free: 1.422 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002783/0.1211, allocations: 1.443 MB / 0.4944 GB, free: 15.97 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.1221, allocations: 494.8 kB / 0.4949 GB, free: 15.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.596e-05/0.1222, allocations: 4 kB / 0.4949 GB, free: 15.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.461e-05/0.1222, allocations: 3.938 kB / 0.4949 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.303e-05/0.1223, allocations: 11.86 kB / 0.4949 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.1225, allocations: 83.77 kB / 0.495 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002356/0.1228, allocations: 191.6 kB / 0.4951 GB, free: 15.19 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.955e-05/0.1228, allocations: 4 kB / 0.4951 GB, free: 15.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001399/0.123, allocations: 99.78 kB / 0.4952 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001366/0.1231, allocations: 95.66 kB / 0.4953 GB, free: 15 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.905e-05/0.1231, allocations: 12 kB / 0.4953 GB, free: 14.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.181e-05/0.1232, allocations: 12 kB / 0.4954 GB, free: 14.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.502e-05/0.1232, allocations: 55.84 kB / 0.4954 GB, free: 14.92 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.1233, allocations: 75.78 kB / 0.4955 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002085/0.1236, allocations: 131.6 kB / 0.4956 GB, free: 14.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1236, allocations: 0 / 0.4956 GB, free: 14.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1236, allocations: 4 kB / 0.4956 GB, free: 14.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.1236, allocations: 0 / 0.4956 GB, free: 14.71 MB / 382.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.001102/0.1247, allocations: 0.5536 MB / 0.4962 GB, free: 14.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.1247, allocations: 8.031 kB / 0.4962 GB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.597e-05/0.1248, allocations: 24.83 kB / 0.4962 GB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.125, allocations: 184.2 kB / 0.4964 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/0.125, allocations: 12.36 kB / 0.4964 GB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.272e-05/0.1251, allocations: 32.34 kB / 0.4964 GB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006619/0.1258, allocations: 381.3 kB / 0.4968 GB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.467e-06/0.1258, allocations: 0 / 0.4968 GB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.397e-05/0.1258, allocations: 11.98 kB / 0.4968 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1258, allocations: 0 / 0.4968 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.126, allocations: 67.94 kB / 0.4968 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004869/0.1265, allocations: 372.6 kB / 0.4972 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002516/0.1267, allocations: 90.55 kB / 0.4973 GB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.1269, allocations: 68.81 kB / 0.4974 GB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.1269, allocations: 0 / 0.4974 GB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008824/0.1278, allocations: 0.5317 MB / 0.4979 GB, free: 12.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 1.773e-06/0.1278, allocations: 0 / 0.4979 GB, free: 12.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.001062/0.1289, allocations: 0.6496 MB / 0.4985 GB, free: 11.58 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.1289, allocations: 55.41 kB / 0.4986 GB, free: 11.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.1291, allocations: 125.2 kB / 0.4987 GB, free: 11.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.82e-05/0.1291, allocations: 45.69 kB / 0.4987 GB, free: 11.33 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.1292, allocations: 96.69 kB / 0.4988 GB, free: 11.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.309e-05/0.1293, allocations: 71.56 kB / 0.4989 GB, free: 11.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.1294, allocations: 61.7 kB / 0.4989 GB, free: 11.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.1296, allocations: 330.8 kB / 0.4993 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.1297, allocations: 88.16 kB / 0.4993 GB, free: 10.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002202/0.13, allocations: 155.4 kB / 0.4995 GB, free: 10.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003666/0.1303, allocations: 229.8 kB / 0.4997 GB, free: 10.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1303, allocations: 0 / 0.4997 GB, free: 10.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003909/0.1307, allocations: 249.1 kB / 0.4999 GB, free: 10.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.1307, allocations: 4 kB / 0.4999 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.1307, allocations: 4.125 kB / 0.5 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.1308, allocations: 4 kB / 0.5 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.101e-05/0.1308, allocations: 23.86 kB / 0.5 GB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.1308, allocations: 0 / 0.5 GB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.1311, allocations: 43.89 kB / 0.5 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.1311, allocations: 8 kB / 0.5 GB, free: 9.926 MB / 382.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.0002311/0.1313, allocations: 157.5 kB / 0.5002 GB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.045e-05/0.1314, allocations: 35.92 kB / 0.5002 GB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.287e-05/0.1315, allocations: 29.62 kB / 0.5002 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.1315, allocations: 7.984 kB / 0.5002 GB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.1315, allocations: 0 / 0.5002 GB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.1315, allocations: 0 / 0.5002 GB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002906/0.1318, allocations: 273.4 kB / 0.5005 GB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1318, allocations: 0 / 0.5005 GB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.809e-05/0.1318, allocations: 7.938 kB / 0.5005 GB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.1318, allocations: 11.98 kB / 0.5005 GB, free: 9.348 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.342e-05/0.1318, allocations: 27.95 kB / 0.5006 GB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1319, allocations: 0 / 0.5006 GB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1319, allocations: 0 / 0.5006 GB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008339/0.1327, allocations: 0.5681 MB / 0.5011 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.1329, allocations: 116.9 kB / 0.5012 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.152e-05/0.1329, allocations: 35.89 kB / 0.5013 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002143/0.1331, allocations: 47.94 kB / 0.5013 GB, free: 8.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000203/0.1334, allocations: 79.84 kB / 0.5014 GB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.596e-05/0.1334, allocations: 47.89 kB / 0.5014 GB, free: 8.395 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.711e-05/0.1335, allocations: 95.27 kB / 0.5015 GB, free: 8.301 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1335, allocations: 0 / 0.5015 GB, free: 8.301 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003136/0.1338, allocations: 75.98 kB / 0.5016 GB, free: 8.227 MB / 382.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.000174/0.134, allocations: 137.5 kB / 0.5017 GB, free: 8.086 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005416/0.1345, allocations: 271.9 kB / 0.502 GB, free: 7.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1345, allocations: 0 / 0.502 GB, free: 7.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002863/0.1348, allocations: 171.8 kB / 0.5021 GB, free: 7.652 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.1351, allocations: 47.89 kB / 0.5022 GB, free: 7.605 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.1362, allocations: 431 kB / 0.5026 GB, free: 7.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.1365, allocations: 0.7215 MB / 0.5033 GB, free: 6.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001294/0.1367, allocations: 29.94 kB / 0.5033 GB, free: 6.379 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.1368, allocations: 47.39 kB / 0.5034 GB, free: 6.332 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1368, allocations: 0 / 0.5034 GB, free: 6.332 MB / 382.1 MB Notification: Performance of Templates: time 0.008002/0.1448, allocations: 3.71 MB / 0.507 GB, free: 2.637 MB / 382.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=50 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) [Timeout 50] diffSimulationResults("PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.959013530053198]