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.001134/0.001134, allocations: 102.6 kB / 16.27 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.361/1.361, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.08031/0.08031, allocations: 16.79 MB / 307.8 MB, free: 14.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 61.86 kB / 373.8 MB, free: 48.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0938/0.09528, allocations: 53.58 MB / 427.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002283/0.09759, allocations: 1.437 MB / 428.8 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007686/0.09838, allocations: 495.3 kB / 429.3 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.151e-05/0.09843, allocations: 0 / 429.3 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.903e-05/0.09847, allocations: 3.938 kB / 429.3 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.217e-05/0.09855, allocations: 11.86 kB / 429.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001807/0.09873, allocations: 83.83 kB / 429.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001234/0.09887, allocations: 183.6 kB / 429.6 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.259e-05/0.09892, allocations: 4 kB / 429.6 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.919e-05/0.09902, allocations: 103.7 kB / 429.7 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.136e-05/0.09912, allocations: 83.73 kB / 429.8 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.95e-05/0.09916, allocations: 12 kB / 429.8 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.019e-05/0.0992, allocations: 16 kB / 429.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.745e-05/0.09925, allocations: 59.89 kB / 429.9 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.253e-05/0.09935, allocations: 79.73 kB / 429.9 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001249/0.09948, allocations: 123.6 kB / 430 MB, free: 8.609 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.09949, allocations: 0 / 430 MB, free: 8.609 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.09949, allocations: 0 / 430 MB, free: 8.609 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.0995, allocations: 4 kB / 430.1 MB, free: 8.605 MB / 302.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.000849/0.1004, allocations: 0.5549 MB / 430.6 MB, free: 8.004 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.1004, allocations: 8.031 kB / 430.6 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.39e-05/0.1005, allocations: 24.83 kB / 430.6 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.1006, allocations: 180.2 kB / 430.8 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.193e-05/0.1006, allocations: 20.34 kB / 430.8 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.666e-05/0.1007, allocations: 24.36 kB / 430.9 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000477/0.1012, allocations: 373.4 kB / 431.2 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.1012, allocations: 4 kB / 431.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.911e-05/0.1012, allocations: 15.97 kB / 431.2 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.1013, allocations: 0 / 431.2 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001734/0.1014, allocations: 75.88 kB / 431.3 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003195/0.1018, allocations: 368.6 kB / 431.7 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.102, allocations: 178.5 kB / 431.9 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001932/0.1022, allocations: 161.1 kB / 432 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.1022, allocations: 3.938 kB / 432 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005917/0.1028, allocations: 0.5336 MB / 432.5 MB, free: 5.945 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.1028, allocations: 0 / 432.5 MB, free: 5.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.000781/0.1036, allocations: 0.6457 MB / 433.2 MB, free: 5.293 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.1036, allocations: 59.39 kB / 433.3 MB, free: 5.223 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.823e-05/0.1037, allocations: 132.6 kB / 433.4 MB, free: 5.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.1038, allocations: 45.69 kB / 433.4 MB, free: 5.035 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.225e-05/0.1038, allocations: 92.69 kB / 433.5 MB, free: 4.941 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.65e-05/0.1039, allocations: 71.28 kB / 433.6 MB, free: 4.871 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.242e-05/0.1039, allocations: 53.7 kB / 433.6 MB, free: 4.812 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.008e-05/0.104, allocations: 334.8 kB / 434 MB, free: 4.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.1041, allocations: 84.3 kB / 434 MB, free: 4.395 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.1043, allocations: 155.4 kB / 434.2 MB, free: 4.219 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000273/0.1046, allocations: 233.7 kB / 434.4 MB, free: 3.969 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1046, allocations: 4 kB / 434.4 MB, free: 3.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002863/0.1049, allocations: 245.2 kB / 434.7 MB, free: 3.719 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.1049, allocations: 4 kB / 434.7 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1049, allocations: 0 / 434.7 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1049, allocations: 4 kB / 434.7 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.293e-05/0.105, allocations: 15.88 kB / 434.7 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.238e-06/0.105, allocations: 7.984 kB / 434.7 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002055/0.1052, allocations: 40.09 kB / 434.7 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.1053, allocations: 8 kB / 434.7 MB, free: 3.641 MB / 302.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.0001642/0.1054, allocations: 162.3 kB / 434.9 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.909e-05/0.1055, allocations: 31.83 kB / 434.9 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.293e-05/0.1056, allocations: 33.62 kB / 435 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1056, allocations: 7.938 kB / 435 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.1056, allocations: 7.938 kB / 435 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.1056, allocations: 3.984 kB / 435 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001719/0.1058, allocations: 273.4 kB / 435.3 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1058, allocations: 0 / 435.3 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.307e-05/0.1058, allocations: 7.938 kB / 435.3 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1058, allocations: 0 / 435.3 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.46e-05/0.1059, allocations: 27.95 kB / 435.3 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.1059, allocations: 4 kB / 435.3 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.1059, allocations: 0 / 435.3 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005515/0.1064, allocations: 0.5719 MB / 435.9 MB, free: 2.438 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.1065, allocations: 112.9 kB / 436 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.024e-05/0.1066, allocations: 27.97 kB / 436 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/0.1068, allocations: 39.94 kB / 436 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.107, allocations: 91.83 kB / 436.1 MB, free: 2.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.726e-05/0.107, allocations: 39.95 kB / 436.2 MB, free: 2.113 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.599e-05/0.1071, allocations: 95.27 kB / 436.3 MB, free: 2.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1071, allocations: 4 kB / 436.3 MB, free: 2.016 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002577/0.1074, allocations: 79.98 kB / 436.3 MB, free: 1.938 MB / 302.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.0001174/0.1075, allocations: 133.4 kB / 436.5 MB, free: 1.801 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004425/0.1079, allocations: 307.7 kB / 436.8 MB, free: 1.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1079, allocations: 0 / 436.8 MB, free: 1.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004245/0.1084, allocations: 0.7264 MB / 437.5 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.1087, allocations: 55.02 kB / 437.6 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008483/0.1095, allocations: 467.1 kB / 438 MB, free: 244 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.1098, allocations: 0.7138 MB / 438.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.1099, allocations: 47.39 kB / 438.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of SimCode: time 1.623e-06/0.1099, allocations: 0 / 438.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of Templates: time 0.004013/0.1139, allocations: 2.59 MB / 441.4 MB, free: 12.87 MB / 318.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