Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_symb_jac_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) 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.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_symb_jac_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_symb_jac_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.001598/0.001598, allocations: 108.4 kB / 16.42 MB, free: 6.453 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.001723/0.001723, allocations: 185.5 kB / 17.35 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06684/0.06684, allocations: 14.18 MB / 284.8 MB, free: 13.86 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 66.62 kB / 398.7 MB, free: 43.24 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08795/0.09002, allocations: 50.13 MB / 448.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002667/0.09274, allocations: 1.434 MB / 450.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.09377, allocations: 0.5309 MB / 450.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.229e-05/0.09383, allocations: 0 / 450.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.923e-05/0.09386, allocations: 3.938 kB / 450.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.689e-05/0.09395, allocations: 19.84 kB / 450.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002137/0.09417, allocations: 75.83 kB / 450.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002037/0.09439, allocations: 187.6 kB / 451 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.358e-05/0.09445, allocations: 4 kB / 451 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.09458, allocations: 99.83 kB / 451.1 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.09472, allocations: 91.67 kB / 451.2 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.264e-05/0.09477, allocations: 12 kB / 451.2 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.816e-05/0.09482, allocations: 16 kB / 451.3 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.777e-05/0.09489, allocations: 55.84 kB / 451.3 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.095, allocations: 71.8 kB / 451.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001843/0.09519, allocations: 135.5 kB / 451.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.0952, allocations: 0 / 451.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.09521, allocations: 0 / 451.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.09522, allocations: 0 / 451.5 MB, free: 9.555 MB / 334.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.001088/0.09631, allocations: 0.5614 MB / 452.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.09636, allocations: 8.031 kB / 452.1 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.09647, allocations: 24.88 kB / 452.1 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002485/0.09672, allocations: 184.2 kB / 452.3 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.09676, allocations: 16.34 kB / 452.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.267e-05/0.09683, allocations: 28.3 kB / 452.3 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006168/0.09745, allocations: 377.4 kB / 452.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.09747, allocations: 0 / 452.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.043e-05/0.09753, allocations: 11.98 kB / 452.7 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.09754, allocations: 0 / 452.7 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002008/0.09774, allocations: 75.88 kB / 452.8 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004854/0.09824, allocations: 364.6 kB / 453.1 MB, free: 7.785 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.09853, allocations: 174.5 kB / 453.3 MB, free: 7.605 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.09879, allocations: 164.8 kB / 453.5 MB, free: 7.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.266e-05/0.0988, allocations: 3.984 kB / 453.5 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008174/0.09963, allocations: 0.5222 MB / 454 MB, free: 6.902 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.383e-06/0.09964, allocations: 0 / 454 MB, free: 6.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001157/0.1008, allocations: 0.6511 MB / 454.6 MB, free: 6.246 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.1009, allocations: 55.41 kB / 454.7 MB, free: 6.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.101, allocations: 137.2 kB / 454.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.016e-05/0.101, allocations: 45.69 kB / 454.9 MB, free: 5.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.1012, allocations: 88.7 kB / 455 MB, free: 5.898 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.207e-05/0.1012, allocations: 79.55 kB / 455 MB, free: 5.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.352e-05/0.1013, allocations: 53.7 kB / 455.1 MB, free: 5.762 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1015, allocations: 330.8 kB / 455.4 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.1016, allocations: 88.28 kB / 455.5 MB, free: 5.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002093/0.1019, allocations: 155.4 kB / 455.7 MB, free: 5.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000367/0.1022, allocations: 237.6 kB / 455.9 MB, free: 4.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1022, allocations: 4 kB / 455.9 MB, free: 4.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003651/0.1026, allocations: 233.4 kB / 456.1 MB, free: 4.676 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.1026, allocations: 8 kB / 456.1 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.1027, allocations: 7.922 kB / 456.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.1027, allocations: 4 kB / 456.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.786e-05/0.1028, allocations: 15.94 kB / 456.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.1028, allocations: 11.88 kB / 456.2 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.103, allocations: 47.97 kB / 456.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.57e-05/0.103, allocations: 12 kB / 456.2 MB, free: 4.57 MB / 334.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.0001916/0.1032, allocations: 159.8 kB / 456.4 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.351e-05/0.1033, allocations: 27.89 kB / 456.4 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.974e-05/0.1034, allocations: 29.62 kB / 456.4 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.1034, allocations: 4 kB / 456.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1034, allocations: 8 kB / 456.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1034, allocations: 0 / 456.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003148/0.1037, allocations: 277.4 kB / 456.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1037, allocations: 0 / 456.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.293e-05/0.1038, allocations: 11.98 kB / 456.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1038, allocations: 3.938 kB / 456.7 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.021e-05/0.1038, allocations: 23.95 kB / 456.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1038, allocations: 0 / 456.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1039, allocations: 0 / 456.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001667/0.1055, allocations: 1.513 MB / 458.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.1057, allocations: 120.9 kB / 458.4 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.612e-05/0.1058, allocations: 27.91 kB / 458.4 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000218/0.106, allocations: 43.94 kB / 458.5 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/0.1062, allocations: 83.84 kB / 458.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.688e-05/0.1063, allocations: 43.95 kB / 458.6 MB, free: 2.066 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.407e-05/0.1063, allocations: 95.27 kB / 458.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1064, allocations: 0 / 458.7 MB, free: 1.973 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004352/0.1068, allocations: 79.97 kB / 458.8 MB, free: 1.895 MB / 334.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.0001628/0.107, allocations: 129.4 kB / 458.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005087/0.1075, allocations: 292.1 kB / 459.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1075, allocations: 4 kB / 459.2 MB, free: 1.469 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006961/0.1082, allocations: 0.7303 MB / 459.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.1085, allocations: 47.88 kB / 459.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.1096, allocations: 0.6075 MB / 460.6 MB, free: 48 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003596/0.11, allocations: 0.7255 MB / 461.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001102/0.1101, allocations: 33.89 kB / 461.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.1103, allocations: 43.33 kB / 461.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1103, allocations: 0 / 461.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of Templates: time 0.007704/0.118, allocations: 3.677 MB / 465 MB, free: 11.55 MB / 350.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_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_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches