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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) 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=1000,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=1000,variableFilter="Ntap|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001631/0.001631, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002071/0.002071, allocations: 196.7 kB / 16.79 MB, free: 6.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.89/1.89, allocations: 222.9 MB / 240.5 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.3167/0.3167, allocations: 16.79 MB / 307.4 MB, free: 15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 63.89 kB / 373.1 MB, free: 2.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6546/0.6561, allocations: 53.55 MB / 426.7 MB, free: 40.06 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.00362/0.6598, allocations: 1.501 MB / 428.2 MB, free: 39.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.661, allocations: 0.4926 MB / 428.7 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.602e-05/0.6611, allocations: 7.719 kB / 428.7 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.696e-05/0.6612, allocations: 3.562 kB / 428.7 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.6613, allocations: 11.05 kB / 428.7 MB, free: 39.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.6616, allocations: 70.53 kB / 428.7 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002387/0.6618, allocations: 178.8 kB / 428.9 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.322e-05/0.6619, allocations: 6.25 kB / 428.9 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000148/0.6621, allocations: 95.55 kB / 429 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.6622, allocations: 91.02 kB / 429.1 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.978e-05/0.6623, allocations: 11.62 kB / 429.1 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.538e-05/0.6623, allocations: 13.25 kB / 429.1 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.291e-05/0.6624, allocations: 63.52 kB / 429.2 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001536/0.6626, allocations: 87.77 kB / 429.3 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001599/0.6628, allocations: 80 kB / 429.4 MB, free: 39.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.986e-06/0.6628, allocations: 0 / 429.4 MB, free: 39.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.6628, allocations: 0 / 429.4 MB, free: 39.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.6628, allocations: 0 / 429.4 MB, free: 39.27 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.001162/0.664, allocations: 0.5609 MB / 429.9 MB, free: 38.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.962e-05/0.664, allocations: 8.156 kB / 429.9 MB, free: 38.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.6642, allocations: 28.98 kB / 430 MB, free: 38.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001606/0.6643, allocations: 170.4 kB / 430.1 MB, free: 38.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.6644, allocations: 16.47 kB / 430.1 MB, free: 38.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.07e-05/0.6645, allocations: 27.89 kB / 430.2 MB, free: 38.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006912/0.6652, allocations: 379 kB / 430.5 MB, free: 38.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.6652, allocations: 2.719 kB / 430.5 MB, free: 38.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.249e-05/0.6653, allocations: 13.55 kB / 430.5 MB, free: 38.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.6653, allocations: 2.906 kB / 430.5 MB, free: 38.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000204/0.6655, allocations: 64.19 kB / 430.6 MB, free: 38.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005292/0.666, allocations: 376.6 kB / 431 MB, free: 38.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003137/0.6663, allocations: 170.6 kB / 431.1 MB, free: 38.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002696/0.6666, allocations: 158.5 kB / 431.3 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.6666, allocations: 2.781 kB / 431.3 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009268/0.6676, allocations: 0.5314 MB / 431.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.964e-06/0.6676, allocations: 0 / 431.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001085/0.6687, allocations: 0.6463 MB / 432.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.179e-05/0.6688, allocations: 65.16 kB / 432.5 MB, free: 37.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.6689, allocations: 131.9 kB / 432.7 MB, free: 37.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.323e-05/0.669, allocations: 47.81 kB / 432.7 MB, free: 37.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.849e-05/0.669, allocations: 88.64 kB / 432.8 MB, free: 37.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.339e-05/0.6691, allocations: 72.81 kB / 432.9 MB, free: 37.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.865e-05/0.6692, allocations: 53.05 kB / 432.9 MB, free: 37.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.6694, allocations: 336 kB / 433.3 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.6695, allocations: 90.19 kB / 433.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.6697, allocations: 151.7 kB / 433.5 MB, free: 36.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003755/0.6701, allocations: 239.2 kB / 433.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.6701, allocations: 3.938 kB / 433.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003856/0.6705, allocations: 247.2 kB / 434 MB, free: 36.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.6705, allocations: 6 kB / 434 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.6706, allocations: 2.875 kB / 434 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.532e-05/0.6706, allocations: 2.938 kB / 434 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.6707, allocations: 16.09 kB / 434 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.6707, allocations: 2.875 kB / 434 MB, free: 36.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002187/0.671, allocations: 41.52 kB / 434 MB, free: 36.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.52e-05/0.671, allocations: 5.25 kB / 434 MB, free: 36.51 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.000257/0.6712, allocations: 166.8 kB / 434.2 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.871e-05/0.6713, allocations: 28.03 kB / 434.2 MB, free: 36.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.134e-05/0.6714, allocations: 39.73 kB / 434.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.6714, allocations: 3.906 kB / 434.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.998e-06/0.6714, allocations: 0 / 434.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.6715, allocations: 3.938 kB / 434.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002663/0.6717, allocations: 275.3 kB / 434.6 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.6717, allocations: 0 / 434.6 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.267e-05/0.6718, allocations: 12.62 kB / 434.6 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.6718, allocations: 0 / 434.6 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.767e-05/0.6718, allocations: 26.42 kB / 434.6 MB, free: 36.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.6718, allocations: 0 / 434.6 MB, free: 36.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.6718, allocations: 0 / 434.6 MB, free: 36.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000809/0.6727, allocations: 0.569 MB / 435.2 MB, free: 35.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001661/0.6728, allocations: 124 kB / 435.3 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.857e-05/0.6729, allocations: 27.08 kB / 435.3 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.6732, allocations: 40.03 kB / 435.3 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002293/0.6734, allocations: 84.41 kB / 435.4 MB, free: 35.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.639e-05/0.6735, allocations: 44 kB / 435.5 MB, free: 35.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.266e-05/0.6735, allocations: 102.2 kB / 435.6 MB, free: 35.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6735, allocations: 0 / 435.6 MB, free: 35.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.6738, allocations: 77.39 kB / 435.6 MB, free: 35.59 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.0002359/0.6741, allocations: 133.3 kB / 435.8 MB, free: 35.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006046/0.6747, allocations: 288.8 kB / 436.1 MB, free: 35.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.6747, allocations: 3.938 kB / 436.1 MB, free: 35.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007325/0.6754, allocations: 0.727 MB / 436.8 MB, free: 34.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.6758, allocations: 61.2 kB / 436.9 MB, free: 34.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.677, allocations: 478.5 kB / 437.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/0.6773, allocations: 0.7168 MB / 438 MB, free: 33.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.6775, allocations: 45.62 kB / 438.1 MB, free: 33.9 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.6775, allocations: 0 / 438.1 MB, free: 33.9 MB / 350.1 MB Notification: Performance of Templates: time 0.005533/0.683, allocations: 2.578 MB / 440.7 MB, free: 33.68 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (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 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) 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) Reference file matches