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.001577/0.001577, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001812/0.001812, allocations: 216.9 kB / 22.99 MB, free: 4.945 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.421/1.421, allocations: 207.7 MB / 233.8 MB, free: 9.793 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.07075/0.07075, allocations: 14.4 MB / 300.5 MB, free: 7.23 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.002327/0.002327, allocations: 71.91 kB / 423.5 MB, free: 36.94 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08286/0.08518, allocations: 52.9 MB / 476.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002595/0.08778, allocations: 1.425 MB / 477.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.08879, allocations: 0.5074 MB / 478.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.321e-05/0.08884, allocations: 3.938 kB / 478.3 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.257e-05/0.08886, allocations: 3.938 kB / 478.3 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.396e-05/0.08894, allocations: 23.84 kB / 478.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002/0.08914, allocations: 75.84 kB / 478.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001953/0.08934, allocations: 183.6 kB / 478.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.591e-05/0.08938, allocations: 3.984 kB / 478.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.08953, allocations: 107.7 kB / 478.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.08966, allocations: 75.73 kB / 478.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.19e-05/0.0897, allocations: 12 kB / 478.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.433e-05/0.08973, allocations: 12 kB / 478.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6e-05/0.08979, allocations: 51.92 kB / 478.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001071/0.0899, allocations: 79.72 kB / 478.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001823/0.09008, allocations: 131.6 kB / 479.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.09009, allocations: 4 kB / 479.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.09009, allocations: 0 / 479.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.09009, allocations: 3.938 kB / 479.1 MB, free: 13.25 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.0009804/0.09107, allocations: 493.7 kB / 479.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.09111, allocations: 8.031 kB / 479.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.992e-05/0.09121, allocations: 24.88 kB / 479.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001241/0.09133, allocations: 118.5 kB / 479.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.09135, allocations: 12.36 kB / 479.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.018e-05/0.09142, allocations: 36.28 kB / 479.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006224/0.09205, allocations: 432.8 kB / 480.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.09206, allocations: 0 / 480.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.34e-05/0.0921, allocations: 7.984 kB / 480.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.0921, allocations: 0 / 480.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001956/0.0923, allocations: 67.94 kB / 480.3 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003739/0.09267, allocations: 280.5 kB / 480.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002219/0.0929, allocations: 90.48 kB / 480.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.09308, allocations: 68.8 kB / 480.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.09309, allocations: 0 / 480.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008618/0.09395, allocations: 0.5801 MB / 481.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.884e-06/0.09396, allocations: 0 / 481.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001024/0.09498, allocations: 0.6504 MB / 481.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.987e-05/0.09503, allocations: 55.41 kB / 482 MB, free: 10.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001255/0.09516, allocations: 129.5 kB / 482.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.231e-05/0.09521, allocations: 53.69 kB / 482.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.922e-05/0.09527, allocations: 92.73 kB / 482.2 MB, free: 9.918 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.553e-05/0.09534, allocations: 83.48 kB / 482.3 MB, free: 9.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.37e-05/0.09544, allocations: 53.7 kB / 482.4 MB, free: 9.777 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.09559, allocations: 326.8 kB / 482.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.09574, allocations: 92.22 kB / 482.8 MB, free: 9.355 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002523/0.096, allocations: 228.5 kB / 483 MB, free: 9.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003783/0.09637, allocations: 241.4 kB / 483.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.09638, allocations: 3.938 kB / 483.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003817/0.09676, allocations: 245.4 kB / 483.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.09678, allocations: 4 kB / 483.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.09678, allocations: 4 kB / 483.5 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.0968, allocations: 0 / 483.5 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.645e-05/0.0969, allocations: 19.94 kB / 483.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.445e-06/0.0969, allocations: 3.984 kB / 483.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/0.09713, allocations: 43.98 kB / 483.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.252e-05/0.09715, allocations: 12 kB / 483.6 MB, free: 8.5 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.000201/0.09735, allocations: 156.1 kB / 483.7 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.788e-05/0.09741, allocations: 31.89 kB / 483.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.136e-05/0.09749, allocations: 29.62 kB / 483.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.0975, allocations: 8.031 kB / 483.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.0975, allocations: 8 kB / 483.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.09751, allocations: 0 / 483.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000215/0.09772, allocations: 189.1 kB / 484 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.09772, allocations: 0 / 484 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.265e-05/0.09776, allocations: 15.92 kB / 484 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.09776, allocations: 4 kB / 484 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/0.0978, allocations: 23.95 kB / 484 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.0978, allocations: 0 / 484 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.0978, allocations: 0 / 484 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007776/0.09858, allocations: 0.5592 MB / 484.6 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001564/0.09874, allocations: 47.81 kB / 484.6 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.007e-05/0.09882, allocations: 27.97 kB / 484.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.09904, allocations: 43.94 kB / 484.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.09923, allocations: 87.81 kB / 484.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.397e-05/0.09929, allocations: 39.95 kB / 484.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.371e-05/0.09935, allocations: 95.27 kB / 484.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09935, allocations: 0 / 484.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002899/0.09964, allocations: 83.97 kB / 485 MB, free: 7.004 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.0001605/0.0998, allocations: 133.5 kB / 485.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005016/0.1003, allocations: 267.8 kB / 485.4 MB, free: 6.605 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1003, allocations: 0 / 485.4 MB, free: 6.605 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002787/0.1006, allocations: 173 kB / 485.6 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.1009, allocations: 59.81 kB / 485.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009791/0.1019, allocations: 456.7 kB / 486.1 MB, free: 5.898 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.312e-05/0.102, allocations: 107.3 kB / 486.2 MB, free: 5.777 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.1021, allocations: 43.34 kB / 486.2 MB, free: 5.734 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1021, allocations: 4 kB / 486.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of Templates: time 0.004753/0.1068, allocations: 2.628 MB / 488.9 MB, free: 3.109 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.064314796123654]